Am running drone.io on a kops configured kubernetes cluster. Any build steps that require network access (including the initial git clone) fail to resolve dns names.
Environment:
kubernetes cluster running v1.7.2 provisioned using kops
tried various networking options [flannel, canal…]
tried drone v6, v7 and latest v8rc with same results
See Couldn’t resolve host on clone on how we resolved the issue when drone-agent was using host’s docker for builds.
However, in the end, we settled on starting drone-agent and docker-in-docker containers within the same pod.
The agent was configured to talk to the docker daemon via tcp transport (tcp://127.0.0.1:2375).
I recommend that you verify your host machine can properly configure DNS for user-defined networks. You should be able to test this with the below command. You can substitute github.com with the hostname of your version control system.
I am told that most people have resolved this with iptables rules. If you following the link in zaa’s previous command you will see he modified his iptables configuration to resolve.
I also agree with @zaa that a better approach would be to run a drone agent and docker:dind container in the same pod, instead of connecting drone with the docker daemon on your host machine.
Thanks for the prompt replies. It definitely pointed me in the right direction. Adding a dind container to my to my helm chart for agent deployment made all the difference.