Docker Options in the Kind Config #1506
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
triage/duplicate
Indicates an issue is a duplicate of other open issue.
What would you like to be added: A section in the Kind Config that allows for manipulation of Docker options. I have a need to specify the DNS server that is configured in the host, but I could see the need for other features in addition to the volume mounts and port-mapping options that are currently provided.
Why is this needed: For me specifically, I am building a development environment around kind that uses a private docker registry, this registry is accessed via private DNS records through a VPN. This DNS server is configured to be accessed on the host, however, when docker runs, it uses the DHCP provided DNS server as the container host's DNS server, this makes it impossible to resolve the private registry URL.
Changing the Coredns config does not help, since the docker pull in k8s apparently uses the container host's DNS server.
Changing /etc/docker/daemon.json to fix a DNS server also does not work, since Docker uses the DHCP supplied DNS server as the first option, before consulting the fallback.
As far as I can tell, my only solution is to set
--dns=my-private-dns-server
when kind is started. I would love to hear of some alternate approaches that I can roll into a deployment script.The text was updated successfully, but these errors were encountered: