On drone 1.0.0-rc.3 in kubernetes native mode, I can setup drone, login, sync repos, and trigger builds, but they keep failing with the following error:
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
I’ve tried several different builds, including the docker test at https://github.com/drone/hello-world/blob/test-docker-plugin/.drone.yml. I’ve also tried several that don’t include the docker plugin, just executing scripts or echoing.
A Kubernetes native configuration does not directly connect to the Docker daemon, so that fact that you are getting Docker errors may indicate the Drone server is not properly configured. If I had to guess, it sounds like you have the Drone server configured to run in single-machine mode as opposed to Kubernetes mode, but tough to say for certain without more details.
very possible - I mostly updated my previous kubernetes template for the deployment:
- name: drone
- name: http
- name: grpc
- mountPath: /data
I’m using the following environment variables to configure:
Am I using the wrong image or maybe passing the wrong environment variables?
Also, I see that it’s running drone-server in the container, should it be running a different binary?
this should be removed. The runner capacity instructs the Drone server to run in single-machine mode with 8 local threads.
I wasn’t able to remove that configuration element as I got the follow error when I tried:
time="2019-01-03T16:21:34Z" level=fatal msg="main: invalid configuration" error="envconfig.Process: aITY to Capacity: converting '' to type int. details: strconv.ParseInt: parsing \"\": invalid syntax"
However, I found the problem - it was a simple typo:
should have been:
great, glad you figured it out. I also recommend force-pulling the latest
rc.3 image. I just patched to fix an issue with service connectivity on kubernetes.