apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: 8fa5a078892b220e202c7a44d607e233aa3a01389e55fd7efb7383833c34418d
    configmap-etc-hash: b051aca2497cbb640fe07dd769ad4b4a185c1172670745cd800ed7f87dc2a07d
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-07-25T17:17:00Z"
  generateName: ovn-bgp-agent-
  labels:
    application: ovn
    component: ovn-bgp-agent
    controller-revision-hash: 6d4bffc795
    pod-template-generation: "1"
    release_group: ovn
  name: ovn-bgp-agent-jd9tw
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: DaemonSet
    name: ovn-bgp-agent
    uid: 74abdaca-f536-4bad-91e3-bc0133c7bcec
  resourceVersion: "31324"
  uid: 92e7c132-71a0-4f00-ad32-3a17d0eca566
spec:
  affinity:
    nodeAffinity:
      requiredDuringSchedulingIgnoredDuringExecution:
        nodeSelectorTerms:
        - matchFields:
          - key: metadata.name
            operator: In
            values:
            - instance
  containers:
  - command:
    - /tmp/ovn-bgp-agent.sh
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/ovn-bgp-agent:main@sha256:98f80380aec29ea1cedd9a923edb411706fb7528bfe13daae6dd086e40997d55
    imagePullPolicy: IfNotPresent
    name: ovn-bgp-agent
    resources: {}
    securityContext:
      privileged: true
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /run/openvswitch
      name: run-openvswitch
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/ovn-bgp-agent.sh
      name: ovn-bin
      readOnly: true
      subPath: ovn-bgp-agent.sh
    - mountPath: /etc/ovn-bgp-agent/ovn-bgp-agent.conf
      name: ovn-etc
      readOnly: true
      subPath: ovn-bgp-agent.conf
    - mountPath: /etc/sudoers.d/kolla_ovn_bgp_agent_sudoers
      name: ovn-etc
      readOnly: true
      subPath: ovn_bgp_agent_sudoers
    - mountPath: /etc/ovn-bgp-agent/rootwrap.conf
      name: ovn-etc
      readOnly: true
      subPath: rootwrap.conf
    - mountPath: /etc/ovn-bgp-agent/rootwrap.d/ovn-bgp-agent.filters
      name: ovn-etc
      readOnly: true
      subPath: ovn-bgp-agent.filters
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-wfjt4
      readOnly: true
  dnsPolicy: ClusterFirstWithHostNet
  enableServiceLinks: true
  hostIPC: true
  hostNetwork: true
  hostPID: true
  initContainers:
  - command:
    - /tmp/ovn-bgp-agent-init.sh
    env:
    - name: NODE_IP
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: status.podIP
    - name: NODE_NAME
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: spec.nodeName
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/ovn-bgp-agent:main@sha256:98f80380aec29ea1cedd9a923edb411706fb7528bfe13daae6dd086e40997d55
    imagePullPolicy: IfNotPresent
    name: ovn-bgp-agent-init
    resources: {}
    securityContext:
      privileged: true
      readOnlyRootFilesystem: true
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/ovn-bgp-agent-init.sh
      name: ovn-bin
      readOnly: true
      subPath: ovn-bgp-agent-init.sh
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-wfjt4
      readOnly: true
  nodeName: instance
  nodeSelector:
    openvswitch: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: ovn-bgp-agent
  serviceAccountName: ovn-bgp-agent
  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: 511
      name: ovn-bin
    name: ovn-bin
  - hostPath:
      path: /run/openvswitch
      type: DirectoryOrCreate
    name: run-openvswitch
  - name: ovn-etc
    secret:
      defaultMode: 292
      secretName: ovn-etc
  - emptyDir: {}
    name: pod-tmp
  - name: kube-api-access-wfjt4
    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-07-25T17:17:41Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-07-25T18:05:44Z"
    message: 'containers with unready status: [ovn-bgp-agent]'
    reason: ContainersNotReady
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-07-25T18:05:44Z"
    message: 'containers with unready status: [ovn-bgp-agent]'
    reason: ContainersNotReady
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-07-25T17:17:00Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://4b24a03a2105033e48de8b231070cb74d8e0badeb2ebc2aa0f88aa8ea92f22b1
    image: sha256:bb81a055dbbfed076017140093ff8bb9d0667bf9ed74361fd370dc8cc0b9375a
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/ovn-bgp-agent@sha256:98f80380aec29ea1cedd9a923edb411706fb7528bfe13daae6dd086e40997d55
    lastState:
      terminated:
        containerID: containerd://4b24a03a2105033e48de8b231070cb74d8e0badeb2ebc2aa0f88aa8ea92f22b1
        exitCode: 0
        finishedAt: "2026-07-25T18:05:43Z"
        reason: Completed
        startedAt: "2026-07-25T18:05:38Z"
    name: ovn-bgp-agent
    ready: false
    restartCount: 14
    started: false
    state:
      waiting:
        message: back-off 5m0s restarting failed container=ovn-bgp-agent pod=ovn-bgp-agent-jd9tw_openstack(92e7c132-71a0-4f00-ad32-3a17d0eca566)
        reason: CrashLoopBackOff
  hostIP: 199.204.45.235
  initContainerStatuses:
  - containerID: containerd://eef63a481bb5246b00637cf6f4e00d18653e60e144c702fff70962d777e3897f
    image: sha256:bb81a055dbbfed076017140093ff8bb9d0667bf9ed74361fd370dc8cc0b9375a
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/ovn-bgp-agent@sha256:98f80380aec29ea1cedd9a923edb411706fb7528bfe13daae6dd086e40997d55
    lastState: {}
    name: ovn-bgp-agent-init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://eef63a481bb5246b00637cf6f4e00d18653e60e144c702fff70962d777e3897f
        exitCode: 0
        finishedAt: "2026-07-25T17:17:32Z"
        reason: Completed
        startedAt: "2026-07-25T17:17:32Z"
  phase: Running
  podIP: 199.204.45.235
  podIPs:
  - ip: 199.204.45.235
  qosClass: BestEffort
  startTime: "2026-07-25T17:17:00Z"
