kind: using kind with gitlab kuberenetes executor fails
I try to create a kind cluster for integration test in a gitlab-ci job. Cluster creation fails:
Creating cluster "kind" ...
âĸ Ensuring node image (kindest/node:v1.13.3) đŧ ...
â Ensuring node image (kindest/node:v1.13.3) đŧ
âĸ Preparing nodes đĻ ...
â Preparing nodes đĻ
âĸ Creating kubeadm config đ ...
â Creating kubeadm config đ
âĸ Starting control-plane đšī¸ ...
â Starting control-plane đšī¸
Error: failed to create cluster: failed to init node with kubeadm: exit status 1
cluster creation failed
In the dumped logs there are two entries that may give a clue on the reason.
In docker.log
:
Mar 13 13:44:35 kind-control-plane dockerd[74]: time="2019-03-13T13:44:35.790818335Z" level=warning msg="Could not register builder git source: failed to find git binary: exec: \"git\": executable file not found in $PATH"
In kubelet.log
:
Mar 13 13:44:45 kind-control-plane kubelet[464]: F0313 13:44:45.457729 464 server.go:189] failed to load Kubelet config file /var/lib/kubelet/config.yaml, error failed to read kubelet config file "/var/lib/kubelet/config.yaml", error: open /var/lib/kubelet/config.yaml: no such file or directory
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 24 (10 by maintainers)
If you are using the Kubernetes runner then you must address docker at localhost, i.e.
tcp://localhost:2375
.Additionally, I think that you do not have to set the
DOCKER_DRIVER
environment variable because it does not influence your docker:dind service.