-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.daemonset.yaml
More file actions
43 lines (43 loc) · 1.11 KB
/
controller.daemonset.yaml
File metadata and controls
43 lines (43 loc) · 1.11 KB
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
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: controller-daemonset
namespace: hyperpilot
spec:
template:
metadata:
labels:
name: controller
spec:
containers:
- image: index.docker.io/hyperpilot/controller
imagePullPolicy: Always
name: controller
securityContext:
privileged: true
volumeMounts:
- mountPath: /var/run/docker.sock
name: docker-sock
- mountPath: /var/run/command.sock
name: command-sock
env:
- name: MY_NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
volumes:
- hostPath:
path: /var/run/docker.sock
name: docker-sock
- hostPath:
path: /var/run/command.sock
name: command-sock
- hostPath:
path: /sbin
name: sbin
- hostPath:
path: /lib
name: lib
imagePullSecrets:
- name: myregistrykey
terminationGracePeriodSeconds: 10