Skip to content

Commit 9377925

Browse files
committed
add fuse mounts
1 parent c5d7635 commit 9377925

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

kubernetes/worker-ubuntu22-04.yaml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ spec:
2020
spec:
2121
containers:
2222
- args:
23-
- /config/worker-ubuntu22-04.jsonnet
23+
- /config/worker-fuse.jsonnet
2424
image: buildbarn/bb-worker:20230125T082650Z-47f8d16
2525
name: worker
2626
volumeMounts:
@@ -31,6 +31,11 @@ spec:
3131
name: worker
3232
- mountPath: /storage-worker-cas
3333
name: storage-worker-cas
34+
- mountPath: /worker-fuse
35+
mountPropagation: Bidirectional
36+
name: fuse-worker
37+
securityContext:
38+
privileged: true
3439
env:
3540
- name: NODE_NAME
3641
valueFrom:
@@ -44,8 +49,7 @@ spec:
4449
image: ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448
4550
name: runner
4651
securityContext:
47-
runAsUser: 65534
48-
allowPrivilegeEscalation: false
52+
privileged: true
4953
volumeMounts:
5054
- mountPath: /config/
5155
name: configs
@@ -54,6 +58,9 @@ spec:
5458
name: worker
5559
- mountPath: /storage-worker-cas
5660
name: storage-worker-cas
61+
- mountPath: /worker-fuse
62+
mountPropagation: HostToContainer
63+
name: fuse-worker
5764
- mountPath: /bb
5865
name: bb-runner
5966
readOnly: true
@@ -68,12 +75,17 @@ spec:
6875
command:
6976
- sh
7077
- -c
71-
- mkdir -pm 0777 /worker/build && mkdir -pm 0700 /worker/cache && mkdir -pm 0777 /storage-worker-cas/persistent_state && chmod 0777 /worker
78+
- mkdir -pm 0777 /worker/build && mkdir -pm 0700 /worker/cache && mkdir -pm 0777 /storage-worker-cas/persistent_state && mkdir -pm 0777 /worker-fuse && chmod 0777 /worker
7279
volumeMounts:
7380
- mountPath: /worker
7481
name: worker
7582
- mountPath: /storage-worker-cas
7683
name: storage-worker-cas
84+
- mountPath: /worker-fuse
85+
mountPropagation: Bidirectional
86+
name: fuse-worker
87+
securityContext:
88+
privileged: true
7789
volumes:
7890
- name: bb-runner
7991
emptyDir: {}
@@ -99,4 +111,5 @@ spec:
99111
name: worker
100112
- name: storage-worker-cas
101113
emptyDir: {}
102-
114+
- name: fuse-worker
115+
emptyDir: {}

0 commit comments

Comments
 (0)