Give the k8s Forgejo runner docker.sock access as root+docker gid.
This commit is contained in:
parent
5e1a2b4f8d
commit
8783d77d5e
1 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,8 @@ spec:
|
||||||
operator: Equal
|
operator: Equal
|
||||||
value: network
|
value: network
|
||||||
effect: PreferNoSchedule
|
effect: PreferNoSchedule
|
||||||
|
securityContext:
|
||||||
|
supplementalGroups: [984]
|
||||||
containers:
|
containers:
|
||||||
- name: runner
|
- name: runner
|
||||||
image: code.forgejo.org/forgejo/runner:5.0.1
|
image: code.forgejo.org/forgejo/runner:5.0.1
|
||||||
|
|
@ -38,6 +40,8 @@ spec:
|
||||||
value: unix:///var/run/docker.sock
|
value: unix:///var/run/docker.sock
|
||||||
securityContext:
|
securityContext:
|
||||||
privileged: true
|
privileged: true
|
||||||
|
runAsUser: 0
|
||||||
|
runAsGroup: 0
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- name: docker-sock
|
- name: docker-sock
|
||||||
mountPath: /var/run/docker.sock
|
mountPath: /var/run/docker.sock
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue