Connect a managed Kubernetes to a on-premise company VPN

Posted January 27, 2021 1.2k views
NetworkingVPNKubernetesDigitalOcean Managed KubernetesDigitalOcean VPC

We want to use, in our DO K8S cluster, some services running on premise behind our company VPN.

Our approach is to use VPC gateway for all outbound traffic, as described here: This works fine for normal droplets.

But I’m not sure how to configure the gateway for the k8s worker nodes.
Any recommendations?

Thanks in advance.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer


Were you able to find any solution for this? We are also stuck trying to make this work.

  • Not really, currently we use SSH tunnel via the gateway droplet to connect to our services behind the VPN

    • @user2342 would you have more details on how to set this tunnel / gateway structure? I’m a bit lost on how to do that I can’t find much information online. I usually have a huge problem with changing IP addresses of the DOKS cluster