-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdaemonset.yaml
79 lines (78 loc) · 2.04 KB
/
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
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: edgebit-agent
namespace: edgebit-system
labels: {}
spec:
revisionHistoryLimit: 10
selector:
matchLabels:
app: edgebit-agent
template:
metadata:
labels:
app: edgebit-agent
name: edgebit-agent
annotations:
spec:
securityContext:
runAsUser: 0
hostPID: true
containers:
- name: agent
image: "public.ecr.aws/edgebit/edgebit-agent:0.6.0"
imagePullPolicy: IfNotPresent
command:
resources: {}
ports:
env:
- name: EDGEBIT_URL
valueFrom:
configMapKeyRef:
name: edgebit-agent-config
key: edgebit-url
- name: EDGEBIT_ID
valueFrom:
secretKeyRef:
name: edgebit-agent-api-key
key: edgebit-id
optional: false
- name: EDGEBIT_HOSTNAME
valueFrom:
fieldRef:
fieldPath: status.hostIP
- name: DOCKER_HOST
value: ""
- name: EDGEBIT_CONTAINERD_HOST
value: "unix:///host/run/containerd/containerd.sock"
volumeMounts:
- name: host
mountPath: /host
readOnly: true
mountPropagation: HostToContainer
- name: debugfs
mountPath: /sys/kernel/debug
- name: var-edgebit
mountPath: /var/lib/edgebit
securityContext:
privileged: true
tolerations:
affinity: {}
nodeSelector:
kubernetes.io/os: linux
volumes:
- name: host
hostPath:
path: /
- name: debugfs
hostPath:
path: /sys/kernel/debug
- name: var-edgebit
hostPath:
path: /var/lib/edgebit
type: DirectoryOrCreate
updateStrategy:
rollingUpdate:
maxUnavailable: 10%
type: RollingUpdate