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
|
||||
value: network
|
||||
effect: PreferNoSchedule
|
||||
securityContext:
|
||||
supplementalGroups: [984]
|
||||
containers:
|
||||
- name: runner
|
||||
image: code.forgejo.org/forgejo/runner:5.0.1
|
||||
|
|
@ -38,6 +40,8 @@ spec:
|
|||
value: unix:///var/run/docker.sock
|
||||
securityContext:
|
||||
privileged: true
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
volumeMounts:
|
||||
- name: docker-sock
|
||||
mountPath: /var/run/docker.sock
|
||||
|
|
|
|||
Loading…
Reference in a new issue