Skip to content

Commit

Permalink
pkg/util: Change check-dns init container image
Browse files Browse the repository at this point in the history
The image currently used is busybox:1.28.0 which uses uclibc.  This is
causing nslookup to fail name resolution when it shouldn't in some
environments.  The version of busybox that uses glibc does not suffer the
same problem.

Related:
docker-library/busybox#9
docker-library/busybox#27
  • Loading branch information
lander2k2 committed Feb 7, 2018
1 parent c34c0d3 commit 07c06a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/k8sutil/k8sutil.go
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ func newEtcdPod(m *etcdutil.Member, initialCluster []string, clusterName, state,
},
Spec: v1.PodSpec{
InitContainers: []v1.Container{{
Image: "busybox:1.28.0",
Image: "busybox:1.28.0-glibc",
Name: "check-dns",
// In etcd 3.2, TLS listener will do a reverse-DNS lookup for pod IP -> hostname.
// If DNS entry is not warmed up, it will return empty result and peer connection will be rejected.
Expand Down

0 comments on commit 07c06a4

Please sign in to comment.