forked from buildbarn/bb-deployments
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathworker-ubuntu22-04.yaml
85 lines (85 loc) · 2.33 KB
/
worker-ubuntu22-04.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
apiVersion: apps/v1
kind: Deployment
metadata:
name: worker-ubuntu22-04
namespace: buildbarn
annotations:
prometheus.io/port: "80"
prometheus.io/scrape: "true"
spec:
replicas: 8
selector:
matchLabels:
app: worker
instance: ubuntu22-04
template:
metadata:
labels:
app: worker
instance: ubuntu22-04
spec:
containers:
- args:
- /config/worker-ubuntu22-04.jsonnet
image: ghcr.io/buildbarn/bb-worker:20240310T090416Z-28dbdbb
name: worker
volumeMounts:
- mountPath: /config/
name: configs
readOnly: true
- mountPath: /worker
name: worker
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: POD_NAME
valueFrom:
fieldRef:
fieldPath: metadata.name
- command: [/bb/tini, -v, --, /bb/bb_runner, /config/runner-ubuntu22-04.jsonnet]
image: ghcr.io/catthehacker/ubuntu:act-22.04@sha256:5f9c35c25db1d51a8ddaae5c0ba8d3c163c5e9a4a6cc97acd409ac7eae239448
name: runner
securityContext:
runAsUser: 65534
allowPrivilegeEscalation: false
volumeMounts:
- mountPath: /config/
name: configs
readOnly: true
- mountPath: /worker
name: worker
- mountPath: /bb
name: empty
readOnly: true
initContainers:
- name: bb-runner-installer
image: ghcr.io/buildbarn/bb-runner-installer:20240310T090416Z-28dbdbb
volumeMounts:
- mountPath: /bb/
name: empty
- name: volume-init
image: busybox:1.31.1-uclibc
command:
- sh
- -c
- mkdir -pm 0777 /worker/build && mkdir -pm 0700 /worker/cache && chmod 0777 /worker
volumeMounts:
- mountPath: /worker
name: worker
volumes:
- name: empty
emptyDir: {}
- name: configs
configMap:
name: buildbarn-config
items:
- key: common.libsonnet
path: common.libsonnet
- key: runner-ubuntu22-04.jsonnet
path: runner-ubuntu22-04.jsonnet
- key: worker-ubuntu22-04.jsonnet
path: worker-ubuntu22-04.jsonnet
- emptyDir: {}
name: worker