apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: 2eac3ebb6cbc9d146e71b77986c2bc460a65750fbe1b5d6c5feebbeb3343788a
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-05-06T10:02:47Z"
  generateName: ovn-stale-port-cleanup-
  labels:
    application: ovn
    component: stale-port-cleanup
    controller-revision-hash: 5877b9d4b9
    pod-template-generation: "1"
    release_group: ovn
  name: ovn-stale-port-cleanup-lq6jr
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: DaemonSet
    name: ovn-stale-port-cleanup
    uid: 80b1245e-0f57-4e26-ae56-e257d336b2b3
  resourceVersion: "14507"
  uid: b2a2a83a-bac1-4439-9ac2-45fbd35c026e
spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchFields:
          - key: metadata.name
            operator: In
            values:
            - instance
  containers:
  - command:
    - /tmp/ovn-stale-port-cleanup.sh
    env:
    - name: INTEGRATION_BRIDGE
      value: br-int
    - name: OVS_DB_SOCKET
      value: /run/openvswitch/db.sock
    - name: INTERVAL_SECONDS
      value: "3600"
    - name: MAX_DELETIONS_PER_CYCLE
      value: "200"
    - name: MIN_STALE_OBSERVATIONS
      value: "2"
    - name: DRY_RUN
      value: "0"
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/ovn:v24.03.7-3@sha256:deb1966eff94d8da072a3647db63546722094deb3ef34b6b464609bcba61887a
    imagePullPolicy: IfNotPresent
    name: ovn-stale-port-cleanup
    resources: {}
    securityContext:
      privileged: true
      runAsUser: 0
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp/ovn-stale-port-cleanup.sh
      name: ovn-bin
      readOnly: true
      subPath: ovn-stale-port-cleanup.sh
    - mountPath: /run/openvswitch
      name: run-openvswitch
    - mountPath: /var/run/ovn-stale-port-cleanup
      name: state
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-hc4bx
      readOnly: true
  dnsPolicy: ClusterFirstWithHostNet
  enableServiceLinks: true
  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
      value: '[{"labels":{"application":"openvswitch","component":"server"},"requireSameNode":true}]'
    - 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
    volumeMounts:
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-hc4bx
      readOnly: true
  nodeName: instance
  nodeSelector:
    openvswitch: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: ovn-stale-port-cleanup
  serviceAccountName: ovn-stale-port-cleanup
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/disk-pressure
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/memory-pressure
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/pid-pressure
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/unschedulable
    operator: Exists
  - effect: NoSchedule
    key: node.kubernetes.io/network-unavailable
    operator: Exists
  volumes:
  - configMap:
      defaultMode: 365
      name: ovn-bin
    name: ovn-bin
  - hostPath:
      path: /run/openvswitch
      type: DirectoryOrCreate
    name: run-openvswitch
  - emptyDir: {}
    name: state
  - name: kube-api-access-hc4bx
    projected:
      defaultMode: 420
      sources:
      - serviceAccountToken:
          expirationSeconds: 3607
          path: token
      - configMap:
          items:
          - key: ca.crt
            path: ca.crt
          name: kube-root-ca.crt
      - downwardAPI:
          items:
          - fieldRef:
              apiVersion: v1
              fieldPath: metadata.namespace
            path: namespace
status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2026-05-06T10:03:00Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-05-06T10:03:01Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-05-06T10:03:01Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-05-06T10:02:47Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://1a9d959c7105e27eb8d085b35fd9ebe2d471b0d69ca563e6a96c5ffcd8affaed
    image: sha256:f183e9d034a520ebdfadc9ee3e250ce9012a8aa7baf1d41322996382ff01e8f5
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/ovn@sha256:deb1966eff94d8da072a3647db63546722094deb3ef34b6b464609bcba61887a
    lastState: {}
    name: ovn-stale-port-cleanup
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-05-06T10:03:00Z"
  hostIP: 199.204.45.115
  initContainerStatuses:
  - containerID: containerd://c312fcadd507b73ddca5b681f3db936dff7c72f87e3325d642087c934fad36aa
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://c312fcadd507b73ddca5b681f3db936dff7c72f87e3325d642087c934fad36aa
        exitCode: 0
        finishedAt: "2026-05-06T10:03:00Z"
        reason: Completed
        startedAt: "2026-05-06T10:02:48Z"
  phase: Running
  podIP: 199.204.45.115
  podIPs:
  - ip: 199.204.45.115
  qosClass: BestEffort
  startTime: "2026-05-06T10:02:47Z"
