kubelet now uses cgo for all DNS queries #3457
Labels
area/networking
Issues related to networking support or configuration
status/in-progress
This issue is currently being worked on
type/bug
Something isn't working
Image I'm using:
aws-k8s-1.28
What I expected to happen:
When bootstrapping a cluster,
kubelet
should try multiple entries for the same host in/etc/hosts
:What actually happened:
kubelet
tries to connect to the first IP repeatedly.How to reproduce the problem:
Using
GODEBUG=netdns=2
we can see thatcgo
rather thannetgo
is now used.Sample program:
List multiple IPs for the same host:
Query the host:
This happens because
netgo
sees the new "resolve" directive innsswitch.conf
, and knows it cannot use that NSS plugin so it falls back tocgo
.The text was updated successfully, but these errors were encountered: