apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: 6a12c7a1c81b64fbdccd21b6e8fb66de4e53f0e3d52cc1ecc82b5e5d460eb19a
    configmap-etc-hash: 6784985bb99d4dc2e0a55da999c3ba0c30708a160c16a627f0bd735d5465de3a
  creationTimestamp: "2026-09-01T19:11:45Z"
  generateName: octavia-api-c7d69646f-
  labels:
    application: octavia
    component: api
    pod-template-hash: c7d69646f
    release_group: octavia
  name: octavia-api-c7d69646f-brfk6
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: octavia-api-c7d69646f
    uid: bd38e862-8649-49b2-9a20-8041b6d7c743
  resourceVersion: "44408"
  uid: bb7a6923-dcfe-4f6a-8b1b-b2e829a8050a
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - octavia
            - key: application
              operator: In
              values:
              - octavia
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/octavia-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/octavia:2023.1@sha256:b5659e3d897496305493092d3e7ec562300a109d5792bd8ec5ca85b3a70008ba
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/octavia-api.sh
          - stop
    name: octavia-api
    ports:
    - containerPort: 9876
      name: o-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 9876
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      runAsUser: 42424
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /etc/octavia
      name: pod-etc-octavia
    - mountPath: /tmp/octavia-api.sh
      name: octavia-bin
      readOnly: true
      subPath: octavia-api.sh
    - mountPath: /etc/octavia/octavia.conf
      name: octavia-etc
      readOnly: true
      subPath: octavia.conf
    - mountPath: /etc/octavia/octavia-api-uwsgi.ini
      name: octavia-etc
      readOnly: true
      subPath: octavia-api-uwsgi.ini
    - mountPath: /etc/octavia/certs/server
      name: octavia-server-ca
    - mountPath: /etc/octavia/certs/client
      name: octavia-client-certs
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-v4pjs
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: 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
      value: openstack:percona-xtradb-haproxy,openstack:keystone-api,openstack:rabbitmq-octavia,openstack:memcached,openstack:neutron-server
    - name: DEPENDENCY_JOBS
      value: octavia-db-sync,octavia-ks-user,octavia-ks-endpoints,octavia-rabbit-init
    - name: DEPENDENCY_DAEMONSET
    - name: DEPENDENCY_CONTAINER
    - name: DEPENDENCY_POD_JSON
    - name: DEPENDENCY_CUSTOM_RESOURCE
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint:edge@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    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-v4pjs
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: octavia-api
  serviceAccountName: octavia-api
  terminationGracePeriodSeconds: 30
  tolerations:
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - emptyDir: {}
    name: pod-etc-octavia
  - configMap:
      defaultMode: 365
      name: octavia-bin
    name: octavia-bin
  - name: octavia-etc
    secret:
      defaultMode: 292
      secretName: octavia-etc
  - name: octavia-server-ca
    secret:
      defaultMode: 420
      secretName: octavia-server-ca
  - name: octavia-client-certs
    secret:
      defaultMode: 420
      secretName: octavia-client-certs
  - name: kube-api-access-v4pjs
    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-09-01T19:13:35Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-09-01T19:11:45Z"
    message: 'containers with unready status: [octavia-api]'
    reason: ContainersNotReady
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-09-01T19:11:45Z"
    message: 'containers with unready status: [octavia-api]'
    reason: ContainersNotReady
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-09-01T19:11:45Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://98f8996acb797da7d1821f3802af2f4dab5ada8eb4a5701332d400c8f7326d2d
    image: sha256:7e1d7d5ae52a55729009ff9bfece84537ed4a9b3dc3a2fb88ecb39eefa0eb625
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/octavia@sha256:b5659e3d897496305493092d3e7ec562300a109d5792bd8ec5ca85b3a70008ba
    lastState:
      terminated:
        containerID: containerd://98f8996acb797da7d1821f3802af2f4dab5ada8eb4a5701332d400c8f7326d2d
        exitCode: 22
        finishedAt: "2026-09-01T19:56:34Z"
        reason: Error
        startedAt: "2026-09-01T19:56:28Z"
    name: octavia-api
    ready: false
    restartCount: 13
    started: false
    state:
      waiting:
        message: back-off 5m0s restarting failed container=octavia-api pod=octavia-api-c7d69646f-brfk6_openstack(bb7a6923-dcfe-4f6a-8b1b-b2e829a8050a)
        reason: CrashLoopBackOff
  hostIP: 162.253.55.54
  initContainerStatuses:
  - containerID: containerd://c843a2b02746b8f2e8d9e3742cf3af0939f59efec4ffa77add8e3ca48cdcde18
    image: sha256:d656bd5737950b86b0ecff4b0206024769c78ea55e2f9f4c840c3cc2a10caaf8
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://c843a2b02746b8f2e8d9e3742cf3af0939f59efec4ffa77add8e3ca48cdcde18
        exitCode: 0
        finishedAt: "2026-09-01T19:13:34Z"
        reason: Completed
        startedAt: "2026-09-01T19:11:46Z"
  phase: Running
  podIP: 10.0.0.150
  podIPs:
  - ip: 10.0.0.150
  qosClass: BestEffort
  startTime: "2026-09-01T19:11:45Z"
