2 ms·
> And frequently, the more minimal base images are missing a lot of useful tooling, so it's still an issue. Oh yeah, I know that problem. This happened to me a
by majewsky 9y ago
> And frequently, the more minimal base images are missing a lot of useful tooling, so it's still an issue.
Oh yeah, I know that problem. This happened to me a while ago:
Me: "Hm, that container is having trouble."
$ kubectl logs my-container-24fa8
ERROR: cannot connect to theotherthing.example.corp:443
Me: "Let's see if DNS is working from the container."
$ kubectl exec -ti my-container-24fa8 bash
kubectl: bash: command not found
$ kubectl exec -ti my-container-24fa8 sh
sh$ dig A theotherthing.example.corp
sh: dig: command not found
sh$ host theotherthing.example.corp
sh: host: command not found
sh$ nslookup theotherthing.example.corp
sh: nslookup: command not found
sh$ ls /bin /usr/bin
...
...
sh$ openssl s_client -connect theotherthing.example.corp:443
But I still build my containers on an Alpine base, because the datacenter on the literal other side of the planet has such a shitty link that if the image is 100 MB (rather than 10 MB), it will take multiple minutes to download it on all nodes, even though we have a Squid proxy in place for that in every DC.