https://rancher.com/ logo
Title
a

adventurous-judge-82125

01/10/2023, 3:49 PM
Heyo, i have a little trouble with my k3d pods reaching a certain website. I run the cluster with
--network host
and checked that the resolv.conf has the correct search domains. The host machine can reach the domain. The pod cannot and but if it can ping the ip
w

wide-garage-9465

01/11/2023, 8:49 AM
Did you also check the resolv.conf inside the pod? And how the resolv reflects in CoreDNS? If it's only a single website, you may just want to manage an entry in the CoreDNS config. Since you're using hostnetwork, are your pods also in hostNetwork mode? If so, the dnsPolicy
ClusterFirstWithHostNet
may also be interesting, see https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-s-dns-policy