2018-09-17 14:46:19 +00:00
|
|
|
---
|
|
|
|
apiVersion: apps/v1
|
|
|
|
# This manifest deploys the contiv-ovs pod.
|
|
|
|
kind: DaemonSet
|
2019-09-10 19:06:55 +00:00
|
|
|
apiVersion: apps/v1
|
2018-09-17 14:46:19 +00:00
|
|
|
metadata:
|
|
|
|
name: contiv-ovs
|
|
|
|
namespace: kube-system
|
|
|
|
labels:
|
|
|
|
k8s-app: contiv-ovs
|
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
k8s-app: contiv-ovs
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
k8s-app: contiv-ovs
|
|
|
|
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
|
|
|
containers:
|
|
|
|
# Runs ovs containers on each Kubernetes node.
|
|
|
|
- name: contiv-ovsdb-server
|
|
|
|
image: {{ contiv_ovs_image_repo }}:{{ contiv_ovs_image_tag }}
|
|
|
|
command: ["/scripts/start-ovsdb-server.sh"]
|
|
|
|
securityContext:
|
|
|
|
privileged: false
|
|
|
|
# Won't work until https://github.com/contiv/ovs-docker/pull/4 is merged and image is built again
|
|
|
|
env:
|
|
|
|
- name: OVSDBSERVER_EXTRA_FLAGS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: contiv-config
|
|
|
|
key: contiv_ovsdb_server_extra_flags
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/openvswitch
|
|
|
|
name: etc-openvswitch
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /var/run
|
|
|
|
name: var-run
|
|
|
|
readOnly: false
|
|
|
|
- name: contiv-ovs-vswitchd
|
|
|
|
image: {{ contiv_ovs_image_repo }}:{{ contiv_ovs_image_tag }}
|
|
|
|
command: ["/scripts/start-ovs-vswitchd.sh"]
|
|
|
|
securityContext:
|
|
|
|
privileged: true
|
|
|
|
# Won't work until https://github.com/contiv/ovs-docker/pull/4 is merged and image is built again
|
|
|
|
env:
|
|
|
|
- name: OVSVSWITCHD_EXTRA_FLAGS
|
|
|
|
valueFrom:
|
|
|
|
configMapKeyRef:
|
|
|
|
name: contiv-config
|
|
|
|
key: contiv_ovs_vswitchd_extra_flags
|
|
|
|
volumeMounts:
|
|
|
|
- mountPath: /etc/openvswitch
|
|
|
|
name: etc-openvswitch
|
|
|
|
readOnly: false
|
|
|
|
- mountPath: /lib/modules
|
|
|
|
name: lib-modules
|
|
|
|
readOnly: true
|
|
|
|
- mountPath: /var/run
|
|
|
|
name: var-run
|
|
|
|
readOnly: false
|
|
|
|
volumes:
|
|
|
|
# Used by contiv-ovs
|
|
|
|
- name: etc-openvswitch
|
|
|
|
hostPath:
|
|
|
|
path: /etc/openvswitch
|
|
|
|
- name: lib-modules
|
|
|
|
hostPath:
|
|
|
|
path: /lib/modules
|
|
|
|
- name: var-run
|
|
|
|
hostPath:
|
|
|
|
path: /var/run
|