forked from projectcalico/calico
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnodeagent.yaml
35 lines (35 loc) · 992 Bytes
/
nodeagent.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
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nodeagent
spec:
template:
metadata:
labels:
app: nodeagent
version: v1
spec:
initContainers:
- name: flexvol-driver
image: quay.io/saurabh/flexvol:latest
imagePullPolicy: Always
volumeMounts:
- name: flexvol-driver-host
mountPath: /host/driver
containers:
- name: nodeagent
image: quay.io/saurabh/nodeagent:latest
imagePullPolicy: Always
volumeMounts:
- name: test-workload
mountPath: /tmp/nodeagent
volumes:
- name: test-workload
hostPath:
# directory location on host for the uds between nodeagent and workload
type: DirectoryOrCreate
path: /var/run/nodeagent
- name: flexvol-driver-host
hostPath:
type: DirectoryOrCreate
path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds