apiVersion: apps/v1
kind: DaemonSet
metadata:
  annotations:
    deprecated.daemonset.template.generation: "1"
    meta.helm.sh/release-name: openvswitch
    meta.helm.sh/release-namespace: openstack
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-26T05:47:11Z"
  generation: 1
  labels:
    app.kubernetes.io/managed-by: Helm
    application: openvswitch
    component: server
    release_group: openvswitch
  name: openvswitch
  namespace: openstack
  resourceVersion: "1683"
  uid: d0b3f249-50dd-4692-9bd2-c74a0fe58b76
spec:
  revisionHistoryLimit: 10
  selector:
    matchLabels:
      application: openvswitch
      component: server
      release_group: openvswitch
  template:
    metadata:
      annotations:
        configmap-bin-hash: dde29ad97c654cc8fad36201a8777fee41188fec43634edd2e1425fbd8d03d69
        openstackhelm.openstack.org/release_uuid: ""
      creationTimestamp: null
      labels:
        application: openvswitch
        component: server
        release_group: openvswitch
    spec:
      containers:
      - command:
        - /tmp/openvswitch-db-server.sh
        - start
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/openvswitch:v3.3.6-6
        imagePullPolicy: IfNotPresent
        lifecycle:
          preStop:
            exec:
              command:
              - /tmp/openvswitch-db-server.sh
              - stop
        livenessProbe:
          exec:
            command:
            - /usr/bin/ovs-vsctl
            - show
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 5
        name: openvswitch-db
        readinessProbe:
          exec:
            command:
            - /usr/bin/ovs-vsctl
            - list
            - Open_Vswitch
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 5
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 42424
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/openvswitch-db-server.sh
          name: openvswitch-bin
          readOnly: true
          subPath: openvswitch-db-server.sh
        - mountPath: /run
          name: run
      - args:
        - /tmp/openvswitch-vswitchd.sh
        - start
        command:
        - /tini
        - -s
        - --
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/openvswitch:v3.3.6-6
        imagePullPolicy: IfNotPresent
        lifecycle:
          postStart:
            exec:
              command:
              - /tmp/openvswitch-vswitchd.sh
              - poststart
          preStop:
            exec:
              command:
              - /tmp/openvswitch-vswitchd.sh
              - stop
        livenessProbe:
          exec:
            command:
            - /usr/bin/ovs-appctl
            - bond/list
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 30
          successThreshold: 1
          timeoutSeconds: 5
        name: openvswitch-vswitchd
        readinessProbe:
          exec:
            command:
            - /bin/bash
            - -c
            - /usr/bin/ovs-vsctl show
          failureThreshold: 3
          initialDelaySeconds: 10
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 1
        resources: {}
        securityContext:
          capabilities:
            add:
            - NET_ADMIN
          privileged: true
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/openvswitch-vswitchd.sh
          name: openvswitch-bin
          readOnly: true
          subPath: openvswitch-vswitchd.sh
        - mountPath: /run
          name: run
      dnsPolicy: ClusterFirstWithHostNet
      hostNetwork: true
      initContainers:
      - command:
        - kubernetes-entrypoint
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.name
        - name: NAMESPACE
          valueFrom:
            fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
        - name: INTERFACE_NAME
          value: eth0
        - name: PATH
          value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/
        - name: DEPENDENCY_SERVICE
        - name: DEPENDENCY_DAEMONSET
        - name: DEPENDENCY_CONTAINER
        - name: DEPENDENCY_POD_JSON
        - name: DEPENDENCY_CUSTOM_RESOURCE
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
        imagePullPolicy: IfNotPresent
        name: init
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 65534
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
      - command:
        - chown
        - -R
        - "42424"
        - /run/openvswitch
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/openvswitch:v3.3.6-6
        imagePullPolicy: IfNotPresent
        name: openvswitch-db-perms
        resources: {}
        securityContext:
          allowPrivilegeEscalation: false
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /run/openvswitch
          name: run-openvswitch
      - command:
        - /tmp/openvswitch-vswitchd-init-modules.sh
        image: harbor.atmosphere.dev/ghcr.io/vexxhost/openvswitch:v3.3.6-6
        imagePullPolicy: IfNotPresent
        name: openvswitch-vswitchd-modules
        resources: {}
        securityContext:
          capabilities:
            add:
            - SYS_MODULE
            - SYS_CHROOT
          readOnlyRootFilesystem: true
          runAsUser: 0
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /tmp
          name: pod-tmp
        - mountPath: /tmp/openvswitch-vswitchd-init-modules.sh
          name: openvswitch-bin
          readOnly: true
          subPath: openvswitch-vswitchd-init-modules.sh
        - mountPath: /mnt/host-rootfs
          mountPropagation: HostToContainer
          name: host-rootfs
          readOnly: true
      nodeSelector:
        openvswitch: enabled
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext:
        runAsUser: 42424
      serviceAccount: openvswitch-server
      serviceAccountName: openvswitch-server
      shareProcessNamespace: true
      terminationGracePeriodSeconds: 30
      volumes:
      - emptyDir: {}
        name: pod-tmp
      - configMap:
          defaultMode: 365
          name: openvswitch-bin
        name: openvswitch-bin
      - hostPath:
          path: /run
          type: Directory
        name: run
      - hostPath:
          path: /run/openvswitch
          type: DirectoryOrCreate
        name: run-openvswitch
      - hostPath:
          path: /
          type: Directory
        name: host-rootfs
  updateStrategy:
    rollingUpdate:
      maxSurge: 1
      maxUnavailable: 0
    type: RollingUpdate
status:
  currentNumberScheduled: 1
  desiredNumberScheduled: 1
  numberAvailable: 1
  numberMisscheduled: 0
  numberReady: 1
  observedGeneration: 1
  updatedNumberScheduled: 1
