apiVersion: apps/v1
kind: DaemonSet
metadata:
  annotations:
    deprecated.daemonset.template.generation: "1"
  creationTimestamp: "2026-04-02T13:58:24Z"
  generation: 1
  name: ovn-controller-ovs
  namespace: openstack
  ownerReferences:
  - apiVersion: ovn.openstack.org/v1beta1
    blockOwnerDeletion: true
    controller: true
    kind: OVNController
    name: ovncontroller
    uid: 2cbed795-1ec1-4ab8-b998-eaac8291b2d7
  resourceVersion: "42057"
  uid: 914011b2-6d5d-44ef-be21-0a53dcad461a
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      service: ovn-controller-ovs
  template:
    metadata:
      annotations:
        k8s.v1.cni.cncf.io/networks: '[{"name":"datacentre","namespace":"openstack","interface":"datacentre"},{"name":"tenant","namespace":"openstack","interface":"tenant"}]'
      creationTimestamp: null
      labels:
        service: ovn-controller-ovs
    spec:
      containers:
      - args:
        - --single-child
        - --
        - /usr/local/bin/container-scripts/start-ovsdb-server.sh
        command:
        - /usr/bin/dumb-init
        env:
        - name: CONFIG_HASH
          value: n84h99h5dh66dh557h59bh5f9h5fdh9bh674hf6hbh586h698h578h68ch548h594h68ch7ch5d6h8chcbh677h5b4h559hf9h598h548h65h67ch5b4q
        image: quay.io/podified-antelope-centos9/openstack-ovn-base:current-podified
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /usr/local/bin/container-scripts/stop-ovsdb-server.sh
        livenessProbe:
          exec:
            command:
            - /usr/local/bin/container-scripts/ovsdb_server_liveness.sh
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        name: ovsdb-server
        readinessProbe:
          exec:
            command:
            - /usr/local/bin/container-scripts/ovsdb_server_readiness.sh
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - SYS_ADMIN
            - SYS_NICE
          privileged: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: FallbackToLogsOnError
        volumeMounts:
        - mountPath: /etc/openvswitch
          name: etc-ovs
        - mountPath: /var/run/openvswitch
          name: var-run
        - mountPath: /var/log/openvswitch
          name: var-log
        - mountPath: /var/lib/openvswitch
          name: var-lib
        - mountPath: /usr/local/bin/container-scripts
          name: scripts
          readOnly: true
      - command:
        - /usr/local/bin/container-scripts/start-vswitchd.sh
        env:
        - name: CONFIG_HASH
          value: n84h99h5dh66dh557h59bh5f9h5fdh9bh674hf6hbh586h698h578h68ch548h594h68ch7ch5d6h8chcbh677h5b4h559hf9h598h548h65h67ch5b4q
        image: quay.io/podified-antelope-centos9/openstack-ovn-base:current-podified
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /usr/local/bin/container-scripts/stop-vswitchd.sh
        livenessProbe:
          exec:
            command:
            - /usr/local/bin/container-scripts/vswitchd_liveness.sh
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        name: ovs-vswitchd
        readinessProbe:
          exec:
            command:
            - /usr/local/bin/container-scripts/vswitchd_readiness.sh
          failureThreshold: 3
          initialDelaySeconds: 30
          periodSeconds: 5
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - SYS_ADMIN
            - SYS_NICE
          privileged: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: FallbackToLogsOnError
        volumeMounts:
        - mountPath: /var/run/openvswitch
          name: var-run
        - mountPath: /var/log/openvswitch
          name: var-log
        - mountPath: /var/lib/openvswitch
          name: var-lib
        - mountPath: /usr/local/bin/container-scripts
          name: scripts
          readOnly: true
      dnsPolicy: ClusterFirst
      initContainers:
      - command:
        - /usr/local/bin/container-scripts/init-ovsdb-server.sh
        env:
        - name: CONFIG_HASH
          value: n84h99h5dh66dh557h59bh5f9h5fdh9bh674hf6hbh586h698h578h68ch548h594h68ch7ch5d6h8chcbh677h5b4h559hf9h598h548h65h67ch5b4q
        image: quay.io/podified-antelope-centos9/openstack-ovn-base:current-podified
        imagePullPolicy: IfNotPresent
        name: ovsdb-server-init
        resources: {}
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
            - SYS_ADMIN
            - SYS_NICE
          privileged: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /etc/openvswitch
          name: etc-ovs
        - mountPath: /var/run/openvswitch
          name: var-run
        - mountPath: /var/log/openvswitch
          name: var-log
        - mountPath: /var/lib/openvswitch
          name: var-lib
        - mountPath: /usr/local/bin/container-scripts
          name: scripts
          readOnly: true
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      serviceAccount: ovncontroller-ovncontroller
      serviceAccountName: ovncontroller-ovncontroller
      terminationGracePeriodSeconds: 30
      volumes:
      - hostPath:
          path: /var/home/core/openstack/etc/ovs
          type: DirectoryOrCreate
        name: etc-ovs
      - hostPath:
          path: /var/home/core/openstack/var/run/openvswitch
          type: DirectoryOrCreate
        name: var-run
      - hostPath:
          path: /var/home/core/openstack/var/log/openvswitch
          type: DirectoryOrCreate
        name: var-log
      - hostPath:
          path: /var/home/core/openstack/var/lib/openvswitch
          type: DirectoryOrCreate
        name: var-lib
      - configMap:
          defaultMode: 493
          name: ovncontroller-scripts
        name: scripts
  updateStrategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
    type: RollingUpdate
status:
  currentNumberScheduled: 1
  desiredNumberScheduled: 1
  numberAvailable: 1
  numberMisscheduled: 0
  numberReady: 1
  observedGeneration: 1
  updatedNumberScheduled: 1
