https://github.com/theonedev/onedev/blob/5d980832c90e8477a772be6f6892f56478ef78ce/server-plugin/server-plugin-executor-kubernetes/src/main/java/io/onedev/server/plugin/executor/kubernetes/KubernetesExecutor.java#L876
The kubernetes job executer fails, saying it cannot find and mount the file /var/run/docker.sock.
It would work if you leave fileType blank (its a optional field) or specify it as type of Socket (https://kubernetes.io/docs/concepts/storage/volumes/#hostpath).
Open
Closed
Thanks for the report. Got fixed now.
PS: What k8s cluster you are using? I tested with Google/Azure/Amazon hosted k8s clusters, and they all work even if type is specified as "file"
Released
Hi,
I had a kubernetes cluster installed by kubespray on OpenStack.
Your right a colleague said it could also be due to missing permissions.. I should try it with pods running as root. but that ofc is a bit insecure.
i will run some tests next week and post the results here..anyways thanks for the fast response and keep up the great work!
https://github.com/theonedev/onedev/blob/5d980832c90e8477a772be6f6892f56478ef78ce/server-plugin/server-plugin-executor-kubernetes/src/main/java/io/onedev/server/plugin/executor/kubernetes/KubernetesExecutor.java#L876
The kubernetes job executer fails, saying it cannot find and mount the file /var/run/docker.sock.
It would work if you leave fileType blank (its a optional field) or specify it as type of Socket (https://kubernetes.io/docs/concepts/storage/volumes/#hostpath).