apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: 77a236bc7d97a4af292faf9e8e9159a5f98d4791ee8f5be1f85877388520b38c
    configmap-etc-hash: ff0eec79c5b59146da8857694fe2ec83bebaa47ebbb76c97b3d2e0ea36cfe717
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-02-24T04:07:30Z"
  generateName: barbican-api-7b596489d7-
  labels:
    application: barbican
    component: api
    pod-template-hash: 7b596489d7
    release_group: barbican
  name: barbican-api-7b596489d7-jvt9v
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: barbican-api-7b596489d7
    uid: 08749f75-b2d7-441d-b95e-3bcd6382efd2
  resourceVersion: "7496"
  uid: c1d03efd-6822-4c52-954e-aa2d6e94a93d
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - barbican
            - key: application
              operator: In
              values:
              - barbican
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/barbican.sh
    - start
    image: ghcr.io/vexxhost/barbican:main@sha256:eab0ec0be8f8e5b3534131c494943ed5fc7379dc166db8b7b7c8ac802359330b
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/barbican.sh
          - stop
    name: barbican-api
    ports:
    - containerPort: 9311
      name: b-api
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /
        port: 9311
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /etc/barbican
      name: etcbarbican
    - mountPath: /etc/barbican/barbican-api-uwsgi.ini
      name: barbican-etc
      readOnly: true
      subPath: barbican-api-uwsgi.ini
    - mountPath: /etc/barbican/barbican.conf
      name: barbican-etc
      readOnly: true
      subPath: barbican.conf
    - mountPath: /etc/barbican/api_audit_map.conf
      name: barbican-etc
      readOnly: true
      subPath: api_audit_map.conf
    - mountPath: /etc/barbican/barbican-api-paste.ini
      name: barbican-etc
      readOnly: true
      subPath: barbican-api-paste.ini
    - mountPath: /etc/barbican/policy.yaml
      name: barbican-etc
      readOnly: true
      subPath: policy.yaml
    - mountPath: /tmp/barbican.sh
      name: barbican-bin
      readOnly: true
      subPath: barbican.sh
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-9zn7z
      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-barbican
    - name: DEPENDENCY_JOBS
      value: barbican-db-sync,barbican-ks-user,barbican-ks-endpoints,barbican-rabbit-init
    - name: DEPENDENCY_DAEMONSET
    - name: DEPENDENCY_CONTAINER
    - name: DEPENDENCY_POD_JSON
    - name: DEPENDENCY_CUSTOM_RESOURCE
    image: 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-9zn7z
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    runAsUser: 42424
  serviceAccount: barbican-api
  serviceAccountName: barbican-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: etcbarbican
  - name: barbican-etc
    secret:
      defaultMode: 292
      secretName: barbican-etc
  - configMap:
      defaultMode: 365
      name: barbican-bin
    name: barbican-bin
  - name: kube-api-access-9zn7z
    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-02-24T04:09:08Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-02-24T04:09:12Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-02-24T04:09:12Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-02-24T04:07:30Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://f186a462a82b28bb30291b30cead8e2970bb4c75b32794320b7282be5e58ffbb
    image: sha256:a6115a12d4a7a4906cd941c0f80be20bf5faba0ffa2c45b3b4d0be1a8f8ffc1b
    imageID: ghcr.io/vexxhost/barbican@sha256:eab0ec0be8f8e5b3534131c494943ed5fc7379dc166db8b7b7c8ac802359330b
    lastState: {}
    name: barbican-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-02-24T04:09:08Z"
  hostIP: 162.253.55.195
  initContainerStatuses:
  - containerID: containerd://eed7358d082e6153340ea6b94d41f73b5b3775ec0b990926cad9596666dc5374
    image: ghcr.io/vexxhost/kubernetes-entrypoint:edge
    imageID: ghcr.io/vexxhost/kubernetes-entrypoint@sha256:8921b64b87af184a1421dd856b2703bcf3cff9f50863cd0d18371cf964a87bd3
    lastState: {}
    name: init
    ready: true
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://eed7358d082e6153340ea6b94d41f73b5b3775ec0b990926cad9596666dc5374
        exitCode: 0
        finishedAt: "2026-02-24T04:09:07Z"
        reason: Completed
        startedAt: "2026-02-24T04:07:31Z"
  phase: Running
  podIP: 172.24.0.170
  podIPs:
  - ip: 172.24.0.170
  qosClass: BestEffort
  startTime: "2026-02-24T04:07:30Z"
