1 # service to expose the ovnkube-db pod
6 namespace: ovn-kubernetes
23 # ovnkube-db HA using Corosync/Pacemaker
25 # starts ovn NB/SB ovsdb daemons in a single container
30 # namespace set up by install
31 namespace: ovn-kubernetes
33 kubernetes.io/description: |
34 This daemonset launches the OVN NB/SB DB server in a single container.
36 progressDeadlineSeconds: 600
37 replicas: {{ ovn_db_replicas | default(3) }}
38 revisionHistoryLimit: 10
53 kubernetes.io/os: "linux"
55 scheduler.alpha.kubernetes.io/critical-pod: ''
57 # Requires fairly broad permissions - ability to read all services and network functions as well
59 serviceAccountName: ovn
61 # required to be scheduled on node with openvswitch.org/ovnkube-db=true label but can
62 # only have one instance per node
65 requiredDuringSchedulingIgnoredDuringExecution:
68 - key: openvswitch.org/ovnkube-db
73 requiredDuringSchedulingIgnoredDuringExecution:
80 topologyKey: kubernetes.io/hostname
83 # ovsdb with corosync in one container - v3
85 image: "{{ ovn_db_vip_image | default('docker.io/ovnkube/ovndb-vip-u:latest') }}"
86 imagePullPolicy: "{{ ovn_image_pull_policy | default('IfNotPresent') }}"
87 command: ["/root/ovndb-vip.sh", "run-ovndb"]
94 terminationMessagePolicy: FallbackToLogsOnError
96 # ovn db is stored in the pod in /etc/openvswitch
97 # (or in /etc/ovn if OVN from new repository is used)
98 # and on the host in /var/lib/openvswitch/
99 - mountPath: /etc/openvswitch/
100 name: host-var-lib-ovs
101 - mountPath: /etc/ovn/
102 name: host-var-lib-ovs
103 - mountPath: /var/log/openvswitch/
104 name: host-var-log-ovs
105 - mountPath: /var/log/ovn/
106 name: host-var-log-ovs
107 - mountPath: /etc/corosync
108 name: host-etc-corosync
109 - mountPath: /var/log/corosync
110 name: host-var-log-corosync
111 - mountPath: /dev/shm
119 - name: OVN_DAEMONSET_VERSION
121 - name: OVN_LOGLEVEL_NB
122 value: "{{ ovn_loglevel_nb }}"
123 - name: K8S_APISERVER
128 - name: OVN_KUBERNETES_NAMESPACE
131 fieldPath: metadata.namespace
135 fieldPath: status.hostIP
137 value: "{{ ovn_db_vip }}"
141 - name: host-var-lib-ovs
143 path: /var/lib/openvswitch
144 - name: host-var-log-ovs
146 path: /var/log/openvswitch
147 - name: host-var-log-corosync
149 path: /var/log/corosync
150 - name: host-etc-corosync