-
Notifications
You must be signed in to change notification settings - Fork 6
/
daemonset.yaml
39 lines (39 loc) · 975 Bytes
/
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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: ssm-agent-installer
spec:
selector:
matchLabels:
job: ssm-agent-installer
template:
metadata:
labels:
job: ssm-agent-installer
spec:
hostPID: true
restartPolicy: Always
initContainers:
- image: public.ecr.aws/q2t9z9u5/ssm-agent-installer:1.2
name: ssm-agent-installer
securityContext:
privileged: true
volumeMounts:
- name: install-script
mountPath: /tmp
- name: host-mount
mountPath: /host
volumes:
- name: install-script
configMap:
name: ssm-installer-script
- name: host-mount
hostPath:
path: /tmp/install
containers:
- image: "gcr.io/google-containers/pause:2.0"
name: pause
securityContext:
allowPrivilegeEscalation: false
runAsUser: 1000
readOnlyRootFilesystem: true