Hello,
I'm using an OpenVPN connection inside one of my pods inside my cluster. The problem is that when the VPN connection fires, I'm not able to access my cluster services by DNS name (say I have a "backend" service, "backend" or "backend.default.svc.cluster.local" are not reachable) nor via their respective IP. I manage to reach cluster services when changing my VPN client config by adding :
route 10.2.0.0 255.255.0.0 net_gateway
dhcp-option DNS 10.3.0.10
dhcp-option DNS 192.168.10.1
dhcp-option DNS 8.8.8.8
dhcp-option DOMAIN-SEARCH cluster.local
dhcp-option DOMAIN-SEARCH svc.cluster.local
dhcp-option DOMAIN-SEARCH default.svc.cluster.local
But of course then, external traffic is not going through VPN, even if it is working properly.
So to sum up my needs : I'm want to be able to open a VPN connection inside a pod, I want all requests (I try to reach remote websites that we don't have inside the cluster) but I still want to be able to send requests to services inside the cluster. Does somebody have some insights to help me figure out how to achieve that. I would be very grateful!
Ps: I have the same application running on a dedicated server under docker-compose which handle this correctly.
Regards
OpenVPN inside pod and Service DNS resolving
Related questions
- Kubernetes - questions diverses
23569
15.03.2025 13:17
- Docker registry private
20613
13.10.2016 07:26
- A-t-on une idée des futurs tarifs?
15740
03.04.2019 19:18
- Kubernetes ingress port 80 & 443
14934
31.12.2018 11:48
- [Auto TLS sur k8s] ClusterIssuer cert-manager pour OVH
14889
18.11.2017 22:45
- Kubernetes Metrics
14864
18.11.2019 10:49
- Kubernetes Python
13965
23.10.2023 14:41
- Datastore commun ?
13866
12.10.2016 12:15
- Ingress loadbalancer bonne pratique
13766
05.08.2024 09:02
- Ingress on ports 80/443 for cluster
13766
05.12.2018 14:44