1 # yamllint disable rule:hyphens rule:commas rule:indentation
4 # starts ovn NB/SB ovsdb daemons, each in a separate container
5 # it is running on master node for now, but does not need to be the case
10 # namespace set up by install
11 namespace: ovn-kubernetes
13 kubernetes.io/description: |
14 This daemonset launches the OVN NB/SB ovsdb service components.
16 progressDeadlineSeconds: 600
18 revisionHistoryLimit: 10
33 openshift.io/component: network
34 beta.kubernetes.io/os: "linux"
36 scheduler.alpha.kubernetes.io/critical-pod: ''
38 # Requires fairly broad permissions - ability to read all services and network functions as well
40 serviceAccountName: ovn
43 # firewall rules for ovn - assumed to be setup
44 # iptables -A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m tcp --dport 6641 -j ACCEPT
45 # iptables -A OS_FIREWALL_ALLOW -p tcp -m state --state NEW -m tcp --dport 6642 -j ACCEPT
49 image: "iecedge/ovn-daemonset:latest"
50 imagePullPolicy: "IfNotPresent"
52 command: ["/root/ovnkube.sh", "nb-ovsdb"]
60 # ovn db is stored in the pod in /etc/openvswitch
61 # and on the host in /var/lib/openvswitch/
62 - mountPath: /etc/openvswitch/
63 name: host-var-lib-ovs
64 - mountPath: /var/log/openvswitch/
65 name: host-var-log-ovs
72 - name: OVN_DAEMONSET_VERSION
75 value: "-vconsole:info -vfile:info"
81 - name: OVN_KUBERNETES_NAMESPACE
84 fieldPath: metadata.namespace
88 # TODO: Temporarily disabled until we determine how to wait for clean default
91 # initialDelaySeconds: 10
101 image: "iecedge/ovn-daemonset:latest"
102 imagePullPolicy: "IfNotPresent"
104 command: ["/root/ovnkube.sh", "sb-ovsdb"]
112 # ovn db is stored in the pod in /etc/openvswitch
113 # and on the host in /var/lib/openvswitch/
114 - mountPath: /etc/openvswitch/
115 name: host-var-lib-ovs
116 - mountPath: /var/log/openvswitch/
117 name: host-var-log-ovs
124 - name: OVN_DAEMONSET_VERSION
127 value: "-vconsole:info -vfile:info"
128 - name: K8S_APISERVER
133 - name: OVN_KUBERNETES_NAMESPACE
136 fieldPath: metadata.namespace
140 # TODO: Temporarily disabled until we determine how to wait for clean default
143 # initialDelaySeconds: 10
152 node-role.kubernetes.io/master: ""
153 beta.kubernetes.io/os: "linux"
155 - name: host-var-lib-ovs
157 path: /var/lib/openvswitch
158 - name: host-var-log-ovs
160 path: /var/log/openvswitch