3 # starts master daemons, each in a separate container
4 # it is run on the master node(s)
9 # namespace set up by install
10 namespace: ovn-kubernetes
12 kubernetes.io/description: |
13 This daemonset launches the ovn-kubernetes networking components.
15 progressDeadlineSeconds: 600
17 revisionHistoryLimit: 10
32 openshift.io/component: network
33 beta.kubernetes.io/os: "linux"
35 scheduler.alpha.kubernetes.io/critical-pod: ''
37 # Requires fairly broad permissions - ability to read all services and network functions as well
39 serviceAccountName: ovn
45 - name: run-ovn-northd
46 image: "{{ ovn_image | default('docker.io/ovnkube/ovn-daemonset:latest') }}"
47 imagePullPolicy: "{{ ovn_image_pull_policy | default('IfNotPresent') }}"
49 command: ["/root/ovnkube.sh", "run-ovn-northd"]
57 # Run directories where we need to be able to access sockets
58 - mountPath: /var/run/dbus/
59 name: host-var-run-dbus
61 - mountPath: /var/log/openvswitch/
62 name: host-var-log-ovs
63 - mountPath: /var/run/openvswitch/
64 name: host-var-run-ovs
71 - name: OVN_DAEMONSET_VERSION
73 - name: OVN_LOG_NORTHD
74 value: "-vconsole:info"
93 fieldPath: spec.nodeName
94 - name: OVN_KUBERNETES_NAMESPACE
97 fieldPath: metadata.namespace
101 # TODO: Temporarily disabled until we determine how to wait for clean default
104 # initialDelaySeconds: 10
113 image: "{{ ovn_image | default('docker.io/ovnkube/ovn-daemonset:latest') }}"
114 imagePullPolicy: "{{ ovn_image_pull_policy | default('IfNotPresent') }}"
116 command: ["/root/ovnkube.sh", "run-nbctld"]
122 - mountPath: /var/log/openvswitch/
123 name: host-var-log-ovs
124 - mountPath: /var/run/openvswitch/
125 name: host-var-run-ovs
132 - name: OVN_DAEMONSET_VERSION
134 - name: K8S_APISERVER
143 # TODO: Temporarily disabled until we determine how to wait for clean default
146 # initialDelaySeconds: 10
153 - name: ovnkube-master
154 image: "{{ ovn_image | default('docker.io/ovnkube/ovn-daemonset:latest') }}"
155 imagePullPolicy: "{{ ovn_image_pull_policy | default('IfNotPresent') }}"
157 command: ["/root/ovnkube.sh", "ovn-master"]
163 # Run directories where we need to be able to access sockets
164 - mountPath: /var/run/dbus/
165 name: host-var-run-dbus
167 - mountPath: /var/log/ovn-kubernetes/
168 name: host-var-log-ovnkube
169 - mountPath: /var/run/openvswitch/
170 name: host-var-run-ovs
177 - name: OVN_DAEMONSET_VERSION
179 - name: OVNKUBE_LOGLEVEL
191 - name: K8S_APISERVER
199 fieldPath: spec.nodeName
200 - name: OVN_KUBERNETES_NAMESPACE
203 fieldPath: metadata.namespace
207 # TODO: Temporarily disabled until we determine how to wait for clean default
210 # initialDelaySeconds: 10
219 node-role.kubernetes.io/master: ""
220 beta.kubernetes.io/os: "linux"
222 # TODO: Need to check why we need this?
223 - name: host-var-run-dbus
226 - name: host-var-log-ovs
228 path: /var/log/openvswitch
229 - name: host-var-log-ovnkube
231 path: /var/log/ovn-kubernetes
232 - name: host-var-run-ovs
234 path: /var/run/openvswitch