Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

DNS resolution is failing in the container #39

Closed
Sh4d1 opened this issue Jan 28, 2021 · 0 comments · Fixed by #40
Closed

DNS resolution is failing in the container #39

Sh4d1 opened this issue Jan 28, 2021 · 0 comments · Fixed by #40

Comments

@Sh4d1
Copy link
Member

Sh4d1 commented Jan 28, 2021

Since the container is FROM scratch and the binaray is statically linked, DNS resolution with CoreDNS inside the cluster won't work.
From the build:

/usr/bin/ld: /tmp/go-link-262298860/000016.o: in function `_cgo_26061493d47f_C2func_getaddrinfo':
/tmp/go-build/cgo-gcc-prolog:58: warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking

This makes the --kubeconfig flag unusable when there is a DNS name from within the cluster.

Would you be open to swtich the image to Alpine instead for instance?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant