kubespray/roles/network_plugin/contiv/templates/contiv-cleanup.yml.j2

59 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-09-17 22:46:19 +08:00
---
kind: DaemonSet
apiVersion: apps/v1
2018-09-17 22:46:19 +08: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:
priorityClassName: system-node-critical
2018-09-17 22:46:19 +08:00
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
2018-09-17 22:46:19 +08:00
hostPID: true
tolerations:
- operator: Exists
2018-09-17 22:46:19 +08: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:
2020-06-30 03:39:59 +08:00
- 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
2018-09-17 22:46:19 +08:00
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