#267  Kubernetes Job Executer docker.sock is not of type file
Released
Reopen
Tom Morelly opened 3 months ago

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).

OneDev changed state to 'Closed' 3 months ago
Previous Value Current Value
Open Closed
No comment
Robin Shen commented 3 months ago

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"

OneDev changed state to 'Released' 3 months ago
Previous Value Current Value
Closed Released
No comment
Tom Morelly commented 3 months ago

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!

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
Seen Builds
Milestone
No milestone
Issue Votes (0)
Watchers (3)
Reference
issue onedev-server#267
Please wait...
Page is in error, reload to recover