title: How to use Kubernetes endpoint object?
body: <p>I have a mongodb server hosted outside GCP, I want to connect to it using Kubernetes endpoint service as shown here [<a href="https://www.youtube.com/watch?v=fvpq4jqtuZ8]" rel="nofollow noreferrer">https://www.youtube.com/watch?v=fvpq4jqtuZ8]</a>. How can I do that? Can you write a sample YAML file for the same?</p>