apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: f92208e88a791caba6d7d280c8abf3458eee0b251b24c8de414018ec68b7473b
    configmap-etc-hash: 85ab2d1ddf12c6015395fa4e78b2c58f50b10f1d73c841393529bde632d07c97
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-05-15T01:39:32Z"
  generateName: magnum-api-6df76d664b-
  labels:
    application: magnum
    component: api
    pod-template-hash: 6df76d664b
    release_group: magnum
  name: magnum-api-6df76d664b-9rrvb
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: magnum-api-6df76d664b
    uid: 55ab1a7c-7b14-49e2-8fd0-37f51546b5f9
  resourceVersion: "39407"
  uid: dd1ecafe-22be-43a6-b3e0-5890571c2e2e
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - magnum
            - key: application
              operator: In
              values:
              - magnum
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/magnum-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/magnum:main@sha256:f641000cdc56f072dd34fa5620320d5ee74708309ee4b8ca03eb95b8c73b07cf
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/magnum-api.sh
          - stop
    name: magnum-api
    ports:
    - containerPort: 9511
      name: m-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 9511
        scheme: HTTP
      initialDelaySeconds: 5
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      runAsUser: 42424
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/magnum-api.sh
      name: magnum-bin
      readOnly: true
      subPath: magnum-api.sh
    - mountPath: /etc/magnum
      name: pod-etc-magnum
    - mountPath: /var/cache/magnum
      name: pod-var-cache-magnum
    - mountPath: /etc/magnum/magnum.conf
      name: magnum-etc
      readOnly: true
      subPath: magnum.conf
    - mountPath: /etc/magnum/magnum-api-uwsgi.ini
      name: magnum-etc
      readOnly: true
      subPath: magnum-api-uwsgi.ini
    - mountPath: /etc/magnum/api-paste.ini
      name: magnum-etc
      readOnly: true
      subPath: api-paste.ini
    - mountPath: /etc/magnum/policy.yaml
      name: magnum-etc
      readOnly: true
      subPath: policy.yaml
    - mountPath: /var/lib/magnum/tmp
      name: magnum-lock-path
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-dzkw8
      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-magnum,openstack:barbican-api,openstack:heat-api
    - name: DEPENDENCY_JOBS
      value: magnum-db-sync,magnum-ks-user,magnum-domain-ks-user,magnum-ks-endpoints,magnum-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-dzkw8
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: magnum-api
  serviceAccountName: magnum-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-tmp
  - emptyDir: {}
    name: pod-etc-magnum
  - emptyDir: {}
    name: pod-var-cache-magnum
  - configMap:
      defaultMode: 365
      name: magnum-bin
    name: magnum-bin
  - name: magnum-etc
    secret:
      defaultMode: 292
      secretName: magnum-etc
  - emptyDir: {}
    name: magnum-lock-path
  - name: kube-api-access-dzkw8
    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-15T01:42:26Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-05-15T01:39:32Z"
    message: 'containers with unready status: [magnum-api]'
    reason: ContainersNotReady
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-05-15T01:39:32Z"
    message: 'containers with unready status: [magnum-api]'
    reason: ContainersNotReady
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-05-15T01:39:32Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://54debf4418acfe94b9ab6e6fccc31ba96fead81597916e5ffaf1f1365a352dbc
    image: sha256:894df15d3fe42c128368861b98129be88fc12bb38a6a4ec7cd7fb6884133e092
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/magnum@sha256:f641000cdc56f072dd34fa5620320d5ee74708309ee4b8ca03eb95b8c73b07cf
    lastState:
      terminated:
        containerID: containerd://54debf4418acfe94b9ab6e6fccc31ba96fead81597916e5ffaf1f1365a352dbc
        exitCode: 22
        finishedAt: "2026-05-15T02:10:13Z"
        reason: Error
        startedAt: "2026-05-15T02:10:08Z"
    name: magnum-api
    ready: false
    restartCount: 10
    started: false
    state:
      waiting:
        message: back-off 5m0s restarting failed container=magnum-api pod=magnum-api-6df76d664b-9rrvb_openstack(dd1ecafe-22be-43a6-b3e0-5890571c2e2e)
        reason: CrashLoopBackOff
  hostIP: 199.204.45.57
  initContainerStatuses:
  - containerID: containerd://7d9313444b05c50a47fff526ba5c15baf64af41dcfb6894c01032fe655700dbf
    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://7d9313444b05c50a47fff526ba5c15baf64af41dcfb6894c01032fe655700dbf
        exitCode: 0
        finishedAt: "2026-05-15T01:42:26Z"
        reason: Completed
        startedAt: "2026-05-15T01:39:33Z"
  phase: Running
  podIP: 10.0.0.64
  podIPs:
  - ip: 10.0.0.64
  qosClass: BestEffort
  startTime: "2026-05-15T01:39:32Z"
