You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, mac os catalina, I was able to turn on the VPN and call the service behind the VPN without any problem.
However, after upgrading the mac os version to monterey, a connection timeout occurred when calling a service behind a VPN.
In this case, /etc/resolv.con pointed to by k3d core dns pointed to 127.0.0.11, which is docker internal dns.
after debugging, I checked this issue https://github.com/k3d-io/k3d/issues/209 and then I got to know a new feature for https://github.com/k3d-io/k3d/pull/721 patch.
so, I also adjusted this toggle flag in local env
export K3D_FIX_DNS=1
After this setting is applied, k3d's cluster core dns no longer points to 127.0.0.11 but to 192.168.65.2 dns server.
$ docker ps
CONTAINER ID
c2d7a59eb073 rancher/k3s:v1.21.10-k3s1 ... # agent for k3d node
$ docker exec -it c2d7a59eb073 sh
/ # cat /etc/resolv.con
nameserver 192.168.65.2
options ndots:0
192.168.65.2 is host.k3d.internal and it's mean host docker machine.
Question / Where do you need Help?
Currently, Kubernetes is created with k3d and a pod is making a request to a server in the company network. (bitbucket repo in vpn)
Here, some people normally get clones from the bitbucket repo in vpn, but some people are getting a connection timeout.
My guess is that in some cases this is a problem caused by the host's
/etc/resolv.conf
not being used.Can I adapt the k3d clsuter to use the nameserver used by the VPN in this case?
Scope of your Question
The text was updated successfully, but these errors were encountered: