2018-09-17 14:46:19 +00:00
|
|
|
---
|
|
|
|
kind: DaemonSet
|
2019-09-10 19:06:55 +00:00
|
|
|
apiVersion: apps/v1
|
2018-09-17 14:46:19 +00:00
|
|
|
metadata:
|
|
|
|
name: contiv-cleanup
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: contiv-cleanup
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: contiv-cleanup
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: contiv-cleanup
|
|
|
|
spec:
|
2018-09-25 14:50:22 +00:00
|
|
|
priorityClassName: system-node-critical
|
2018-09-17 14:46:19 +00:00
|
|
|
hostNetwork: true
|
2019-06-05 10:17:56 +00:00
|
|
|
dnsPolicy: ClusterFirstWithHostNet
|
2018-09-17 14:46:19 +00:00
|
|
|
hostPID: true
|
|
|
|
tolerations:
|
2018-09-27 12:28:54 +00:00
|
|
|
- operator: Exists
|
|
|
|
# Mark pod as critical for rescheduling (Will have no effect starting with kubernetes 1.12)
|
|
|
|
- key: CriticalAddonsOnly
|
|
|
|
operator: "Exists"
|
2018-09-17 14:46:19 +00:00
|
|
|
serviceAccountName: contiv-netplugin
|
|
|
|
containers:
|
|
|
|
- name: contiv-ovs-cleanup
|
|
|
|
image: {{ contiv_ovs_image_repo }}:{{ contiv_ovs_image_tag }}
|
|
|
|
command: ["/opt/cni/bin/cleanup"]
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/openvswitch
|
|
|
|
name: etc-openvswitch
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /var/run
|
|
|
|
name: var-run
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /opt/cni/bin
|
|
|
|
name: cni-bin-dir
|
|
|
|
readOnly: false
|
|
|
|
readinessProbe:
|
|
|
|
exec:
|
|
|
|
command:
|
|
|
|
- cat
|
|
|
|
- /tmp/cleanup.done
|
|
|
|
initialDelaySeconds: 3
|
|
|
|
periodSeconds: 3
|
|
|
|
successThreshold: 1
|
|
|
|
volumes:
|
|
|
|
- name: etc-openvswitch
|
|
|
|
hostPath:
|
|
|
|
path: /etc/openvswitch
|
|
|
|
- name: var-run
|
|
|
|
hostPath:
|
|
|
|
path: /var/run
|
|
|
|
- name: cni-bin-dir
|
|
|
|
hostPath:
|
|
|
|
path: /opt/cni/bin
|