X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fcni%2Fovn-kubernetes%2Ftemplates%2Fovnkube-db-vip.yaml.j2;fp=src%2Ffoundation%2Fscripts%2Fcni%2Fovn-kubernetes%2Ftemplates%2Fovnkube-db-vip.yaml.j2;h=556d9ebf50201887b584efa27a4b31933b354df1;hb=fa1c3405246cfa807b6c2e917d90ab8a44222bdb;hp=bea4a9a07fd4cb470fe99f3835a0f025df654006;hpb=bba2e4db70d9f5b39845e991020db05de4d03b62;p=iec.git diff --git a/src/foundation/scripts/cni/ovn-kubernetes/templates/ovnkube-db-vip.yaml.j2 b/src/foundation/scripts/cni/ovn-kubernetes/templates/ovnkube-db-vip.yaml.j2 index bea4a9a..556d9eb 100644 --- a/src/foundation/scripts/cni/ovn-kubernetes/templates/ovnkube-db-vip.yaml.j2 +++ b/src/foundation/scripts/cni/ovn-kubernetes/templates/ovnkube-db-vip.yaml.j2 @@ -1,3 +1,25 @@ +# service to expose the ovnkube-db pod +apiVersion: v1 +kind: Service +metadata: + name: ovnkube-db + namespace: ovn-kubernetes +spec: + ports: + - name: north + port: 6641 + protocol: TCP + targetPort: 6641 + - name: south + port: 6642 + protocol: TCP + targetPort: 6642 + sessionAffinity: None + clusterIP: None + type: ClusterIP + +--- + # ovnkube-db HA using Corosync/Pacemaker # daemonset version 3 # starts ovn NB/SB ovsdb daemons in a single container @@ -28,8 +50,7 @@ spec: name: ovnkube-db component: network type: infra - openshift.io/component: network - beta.kubernetes.io/os: "linux" + kubernetes.io/os: "linux" annotations: scheduler.alpha.kubernetes.io/critical-pod: '' spec: @@ -70,13 +91,19 @@ spec: capabilities: add: ["NET_ADMIN"] + terminationMessagePolicy: FallbackToLogsOnError volumeMounts: # ovn db is stored in the pod in /etc/openvswitch + # (or in /etc/ovn if OVN from new repository is used) # and on the host in /var/lib/openvswitch/ - mountPath: /etc/openvswitch/ name: host-var-lib-ovs + - mountPath: /etc/ovn/ + name: host-var-lib-ovs - mountPath: /var/log/openvswitch/ name: host-var-log-ovs + - mountPath: /var/log/ovn/ + name: host-var-log-ovs - mountPath: /etc/corosync name: host-etc-corosync - mountPath: /var/log/corosync @@ -91,8 +118,8 @@ spec: env: - name: OVN_DAEMONSET_VERSION value: "3" - - name: OVN_LOG_NB - value: "-vconsole:info -vfile:info" + - name: OVN_LOGLEVEL_NB + value: "{{ ovn_loglevel_nb }}" - name: K8S_APISERVER valueFrom: configMapKeyRef: @@ -102,20 +129,12 @@ spec: valueFrom: fieldRef: fieldPath: metadata.namespace + - name: K8S_NODE_IP + valueFrom: + fieldRef: + fieldPath: status.hostIP - name: OVN_DB_VIP value: "{{ ovn_db_vip }}" - ports: - - name: healthz - containerPort: 10256 - # TODO: Temporarily disabled until we determine how to wait for clean default - # config - # livenessProbe: - # initialDelaySeconds: 10 - # httpGet: - # path: /healthz - # port: 10256 - # scheme: HTTP - lifecycle: # end of container volumes: