forked from sourcegraph/deploy-sourcegraph
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pod-tmp-gc.DaemonSet.yaml
41 lines (41 loc) · 1.07 KB
/
pod-tmp-gc.DaemonSet.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
deploy: pod-tmp-gc
name: pod-tmp-gc
spec:
selector:
matchLabels:
app: pod-tmp-gc
template:
metadata:
labels:
app: pod-tmp-gc
name: pod-tmp-gc
spec:
containers:
- args:
- $(NODE_NAME)
- /pod-tmp
env:
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
image: index.docker.io/sourcegraph/pod-tmp-gc:latest@sha256:5ebd7c84d4571d0efb2b04cadb0be702ae90c7edce5463a0fa2e3215f7b4b1e3
terminationMessagePolicy: FallbackToLogsOnError
name: pod-tmp-gc
resources:
limits:
cpu: 10m
memory: 20M
# Replace ${SSD_MOUNT_PATH} with the with the absolute directory path
# on the node where the local SSD is mounted.
# See ../README.md for more information.
#
# volumeMounts:
# - mountPath: ${SSD_MOUNT_PATH}/pod-tmp
# name: pod-tmp
serviceAccountName: pod-tmp-gc
updateStrategy: {}