1 # yamllint disable rule:hyphens rule:commas rule:indentation
2 # service to expose the ovnkube-db pod
7 namespace: ovn-kubernetes
24 # ovnkube-db HA using Corosync/Pacemaker
26 # starts ovn NB/SB ovsdb daemons in a single container
31 # namespace set up by install
32 namespace: ovn-kubernetes
34 kubernetes.io/description: |
35 This daemonset launches the OVN NB/SB DB server in a single container.
37 progressDeadlineSeconds: 600
39 revisionHistoryLimit: 10
54 kubernetes.io/os: "linux"
56 scheduler.alpha.kubernetes.io/critical-pod: ''
58 # Requires fairly broad permissions - ability to read all services and network functions as well
60 serviceAccountName: ovn
62 # required to be scheduled on node with openvswitch.org/ovnkube-db=true label but can
63 # only have one instance per node
66 requiredDuringSchedulingIgnoredDuringExecution:
69 - key: openvswitch.org/ovnkube-db
74 requiredDuringSchedulingIgnoredDuringExecution:
81 topologyKey: kubernetes.io/hostname
84 # ovsdb with corosync in one container - v3
86 image: "docker.io/ovnkube/ovndb-vip-u:latest"
87 imagePullPolicy: "IfNotPresent"
88 command: ["/root/ovndb-vip.sh", "run-ovndb"]
95 terminationMessagePolicy: FallbackToLogsOnError
97 # ovn db is stored in the pod in /etc/openvswitch
98 # (or in /etc/ovn if OVN from new repository is used)
99 # and on the host in /var/lib/openvswitch/
100 - mountPath: /etc/openvswitch/
101 name: host-var-lib-ovs
102 - mountPath: /etc/ovn/
103 name: host-var-lib-ovs
104 - mountPath: /var/log/openvswitch/
105 name: host-var-log-ovs
106 - mountPath: /var/log/ovn/
107 name: host-var-log-ovs
108 - mountPath: /etc/corosync
109 name: host-etc-corosync
110 - mountPath: /var/log/corosync
111 name: host-var-log-corosync
112 - mountPath: /dev/shm
120 - name: OVN_DAEMONSET_VERSION
122 - name: OVN_LOGLEVEL_NB
123 value: "-vconsole:info -vfile:info"
124 - name: K8S_APISERVER
129 - name: OVN_KUBERNETES_NAMESPACE
132 fieldPath: metadata.namespace
136 fieldPath: status.hostIP
142 - name: host-var-lib-ovs
144 path: /var/lib/openvswitch
145 - name: host-var-log-ovs
147 path: /var/log/openvswitch
148 - name: host-var-log-corosync
150 path: /var/log/corosync
151 - name: host-etc-corosync