apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: b6ea754654c28f84e3f581680d5d38ecadb1c08be7ecaae66344c30c19c51750
    configmap-etc-hash: 2cbae519d7c1acbafcdf1b2b1da743119991ded765c624ede9e406c64a43fc5a
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-08T00:46:27Z"
  generateName: barbican-api-6dcf44d94b-
  labels:
    application: barbican
    component: api
    pod-template-hash: 6dcf44d94b
    release_group: barbican
  name: barbican-api-6dcf44d94b-x65r4
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: barbican-api-6dcf44d94b
    uid: cb222e76-e7fb-4f50-ba45-f58a0ac8861c
  resourceVersion: "7802"
  uid: 8d7515b9-c4aa-414b-8734-03ffee675866
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: harbor.atmosphere.dev/ghcr.io/vexxhost/barbican:2023.1@sha256:fba11ee787f6a8a942ca2b7d7106066575e26d7acf4f9a6a2bf7cadee1c9858a
    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-hbhf4
      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: 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-hbhf4
      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-hbhf4
    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-04-08T00:48:01Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-08T00:48:08Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-08T00:48:08Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-08T00:46:27Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://4a8cc1ee842e579b3b132c31d9d65d76d58a78a775993091ebadd6f325933929
    image: sha256:3a35bf4f24e6e70b762770b20f73e9bd4e4f92c01b5c1ad53b9fdbf2e649756b
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/barbican@sha256:fba11ee787f6a8a942ca2b7d7106066575e26d7acf4f9a6a2bf7cadee1c9858a
    lastState: {}
    name: barbican-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-04-08T00:48:01Z"
  hostIP: 199.204.45.250
  initContainerStatuses:
  - containerID: containerd://c71380d420c43c78d44739da46417369b8aaa5ce396f0de1745ca6033108a848
    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://c71380d420c43c78d44739da46417369b8aaa5ce396f0de1745ca6033108a848
        exitCode: 0
        finishedAt: "2026-04-08T00:48:00Z"
        reason: Completed
        startedAt: "2026-04-08T00:46:28Z"
  phase: Running
  podIP: 10.0.0.191
  podIPs:
  - ip: 10.0.0.191
  qosClass: BestEffort
  startTime: "2026-04-08T00:46:27Z"
