apiVersion: apps/v1
kind: StatefulSet
metadata:
  creationTimestamp: "2026-04-04T02:20:06Z"
  generation: 1
  name: ovsdbserver-nb
  namespace: openstack
  ownerReferences:
  - apiVersion: ovn.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: OVNDBCluster
    name: ovndbcluster-nb
    uid: c58ec8dd-deaf-4f0c-bbeb-ed7060102128
  resourceVersion: "44062"
  uid: b2652df2-14d5-479f-b295-6c9997d64f12
spec:
  persistentVolumeClaimRetentionPolicy:
    whenDeleted: Retain
    whenScaled: Retain
  podManagementPolicy: Parallel
  replicas: 1
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      service: ovsdbserver-nb
  serviceName: ovsdbserver-nb
  template:
    metadata:
      annotations:
        k8s.v1.cni.cncf.io/networks: '[{"name":"internalapi","namespace":"openstack","interface":"internalapi"}]'
      creationTimestamp: null
      labels:
        service: ovsdbserver-nb
    spec:
      affinity:
        podAntiAffinity:
          preferredDuringSchedulingIgnoredDuringExecution:
          - podAffinityTerm:
              labelSelector:
                matchExpressions:
                - key: service
                  operator: In
                  values:
                  - ovsdbserver-nb
              topologyKey: kubernetes.io/hostname
            weight: 100
      containers:
      - args:
        - /usr/local/bin/container-scripts/setup.sh
        command:
        - /usr/bin/dumb-init
        env:
        - name: CONFIG_HASH
          value: n69h9hbdh67bh5bbh68ch56bh656h69h594h576h558h5dh598hf5h67dhc8h644h5f8hf4h6dh66h677h548h59fh74h696hd9hb4h5d5h55bhfq
        - name: OVN_LOGDIR
          value: /tmp
        - name: OVN_RUNDIR
          value: /tmp
        image: 38.102.83.110:5001/podified-master-centos10/openstack-ovn-nb-db-server:watcher_latest
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /usr/local/bin/container-scripts/cleanup.sh
        livenessProbe:
          exec:
            command:
            - /usr/bin/pidof
            - ovsdb-server
          failureThreshold: 3
          initialDelaySeconds: 3
          periodSeconds: 3
          successThreshold: 1
          timeoutSeconds: 5
        name: ovsdbserver-nb
        readinessProbe:
          exec:
            command:
            - /usr/bin/pidof
            - ovsdb-server
          failureThreshold: 3
          initialDelaySeconds: 5
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        startupProbe:
          exec:
            command:
            - /usr/bin/pidof
            - ovsdb-server
          failureThreshold: 20
          initialDelaySeconds: 3
          periodSeconds: 3
          successThreshold: 1
          timeoutSeconds: 5
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: FallbackToLogsOnError
        volumeMounts:
        - mountPath: /usr/local/bin/container-scripts
          name: scripts
          readOnly: true
        - mountPath: /etc/ovn
          name: ovndbcluster-nb-etc-ovn
        - mountPath: /tmp
          name: ovsdb-rundir
        - mountPath: /etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem
          name: combined-ca-bundle
          readOnly: true
          subPath: tls-ca-bundle.pem
        - mountPath: /etc/pki/tls/certs/ovndb.crt
          name: ovsdbserver-nb-tls-certs
          readOnly: true
          subPath: tls.crt
        - mountPath: /etc/pki/tls/private/ovndb.key
          name: ovsdbserver-nb-tls-certs
          readOnly: true
          subPath: tls.key
        - mountPath: /etc/pki/tls/certs/ovndbca.crt
          name: ovsdbserver-nb-tls-certs
          readOnly: true
          subPath: ca.crt
      - command:
        - /app/openstack-network-exporter
        env:
        - name: OPENSTACK_NETWORK_EXPORTER_YAML
          value: /etc/config/openstack-network-exporter.yaml
        - name: CONFIG_HASH
          value: n69h9hbdh67bh5bbh68ch56bh656h69h594h576h558h5dh598hf5h67dhc8h644h5f8hf4h6dh66h677h548h59fh74h696hd9hb4h5d5h55bhfq
        image: quay.io/openstack-k8s-operators/openstack-network-exporter:current-podified
        imagePullPolicy: IfNotPresent
        name: openstack-network-exporter
        resources: {}
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: ovsdb-rundir
        - mountPath: /etc/config
          name: config
          readOnly: true
        - mountPath: /etc/pki/tls/certs/ovnmetrics.crt
          name: metrics-certs-tls-certs
          readOnly: true
          subPath: tls.crt
        - mountPath: /etc/pki/tls/private/ovnmetrics.key
          name: metrics-certs-tls-certs
          readOnly: true
          subPath: tls.key
        - mountPath: /etc/pki/tls/certs/ovndbca.crt
          name: metrics-certs-tls-certs
          readOnly: true
          subPath: ca.crt
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: ovncluster-ovndbcluster-nb
      serviceAccountName: ovncluster-ovndbcluster-nb
      terminationGracePeriodSeconds: 300
      volumes:
      - configMap:
          defaultMode: 493
          name: ovndbcluster-nb-scripts
        name: scripts
      - emptyDir: {}
        name: ovsdb-rundir
      - configMap:
          defaultMode: 493
          name: ovndbcluster-nb-config
        name: config
      - name: combined-ca-bundle
        secret:
          defaultMode: 292
          secretName: combined-ca-bundle
      - name: ovsdbserver-nb-tls-certs
        secret:
          defaultMode: 256
          secretName: cert-ovndbcluster-nb-ovndbs
      - name: metrics-certs-tls-certs
        secret:
          defaultMode: 256
          secretName: cert-ovn-metrics
  updateStrategy:
    rollingUpdate:
      partition: 0
    type: RollingUpdate
  volumeClaimTemplates:
  - apiVersion: v1
    kind: PersistentVolumeClaim
    metadata:
      creationTimestamp: null
      labels:
        owner: ovndbcluster-nb
        service: ovsdbserver-nb
      name: ovndbcluster-nb-etc-ovn
      namespace: openstack
    spec:
      accessModes:
      - ReadWriteOnce
      resources:
        requests:
          storage: 10Gi
      storageClassName: local-storage
      volumeMode: Filesystem
    status:
      phase: Pending
status:
  availableReplicas: 1
  collisionCount: 0
  currentReplicas: 1
  currentRevision: ovsdbserver-nb-64d794744b
  observedGeneration: 1
  readyReplicas: 1
  replicas: 1
  updateRevision: ovsdbserver-nb-64d794744b
  updatedReplicas: 1
