apiVersion: v1
kind: Pod
metadata:
  annotations:
    configmap-bin-hash: 0fa826d4d7a09702781edd1dea99271bec84830f0fb47c323ca6697719e1dc71
    configmap-etc-hash: b6d0a1836cf36d136636c2c44f400d75e096819217d1b44b16c64c3bd0c1dc9f
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-09T22:35:20Z"
  generateName: keystone-api-5c7b7d7bf7-
  labels:
    application: keystone
    component: api
    pod-template-hash: 5c7b7d7bf7
    release_group: keystone
  name: keystone-api-5c7b7d7bf7-dcswd
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: keystone-api-5c7b7d7bf7
    uid: 2172e3a4-8e6a-49cb-abc1-b42d7e7fb9dd
  resourceVersion: "6656"
  uid: 5a4f602a-e10a-4ace-83f6-0fa766fde61a
spec:
  affinity:
    podAntiAffinity:
      preferredDuringSchedulingIgnoredDuringExecution:
      - podAffinityTerm:
          labelSelector:
            matchExpressions:
            - key: release_group
              operator: In
              values:
              - keystone
            - key: application
              operator: In
              values:
              - keystone
            - key: component
              operator: In
              values:
              - api
          topologyKey: kubernetes.io/hostname
        weight: 10
  containers:
  - command:
    - /tmp/keystone-api.sh
    - start
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone:main@sha256:e6bbce0c593b2279ecef2c04f6fe3416132fb2e2210d500c4dd884c71fee0aad
    imagePullPolicy: IfNotPresent
    lifecycle:
      preStop:
        exec:
          command:
          - /tmp/keystone-api.sh
          - stop
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /v3/
        port: 5000
        scheme: HTTP
      initialDelaySeconds: 50
      periodSeconds: 60
      successThreshold: 1
      timeoutSeconds: 15
    name: keystone-api
    ports:
    - containerPort: 5000
      name: ks-pub
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /v3/
        port: 5000
        scheme: HTTP
      initialDelaySeconds: 15
      periodSeconds: 60
      successThreshold: 1
      timeoutSeconds: 15
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      readOnlyRootFilesystem: true
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /etc/keystone
      name: etckeystone
    - mountPath: /etc/keystone/domains/keystone.atmosphere.conf
      name: keystone-etc
      readOnly: true
      subPath: keystone.atmosphere.conf
    - mountPath: /var/log/apache2
      name: logs-apache
    - mountPath: /var/run/apache2
      name: run-apache
    - mountPath: /var/www/cgi-bin/keystone
      name: wsgi-keystone
    - mountPath: /etc/keystone/keystone.conf
      name: keystone-etc
      readOnly: true
      subPath: keystone.conf
    - mountPath: /etc/apache2/ports.conf
      name: keystone-etc
      readOnly: true
      subPath: ports.conf
    - mountPath: /etc/keystone/policy.yaml
      name: keystone-etc
      readOnly: true
      subPath: policy.yaml
    - mountPath: /etc/keystone/access_rules.json
      name: keystone-etc
      readOnly: true
      subPath: access_rules.json
    - mountPath: /etc/keystone/sso_callback_template.html
      name: keystone-etc
      readOnly: true
      subPath: sso_callback_template.html
    - mountPath: /etc/apache2/conf-enabled/wsgi-keystone.conf
      name: keystone-etc
      readOnly: true
      subPath: wsgi-keystone.conf
    - mountPath: /etc/apache2/mods-available/mpm_event.conf
      name: keystone-etc
      readOnly: true
      subPath: mpm_event.conf
    - mountPath: /etc/apache2/conf-enabled/security.conf
      name: keystone-etc
      readOnly: true
      subPath: security.conf
    - mountPath: /tmp/keystone-api.sh
      name: keystone-bin
      readOnly: true
      subPath: keystone-api.sh
    - mountPath: /etc/keystone/fernet-keys/
      name: keystone-fernet-keys
    - mountPath: /etc/keystone/credential-keys/
      name: keystone-credential-keys
    - mountPath: /var/lib/apache2/oidc/keycloak.162-253-55-200.nip.io%2Frealms%2Fatmosphere.client
      name: keystone-openid-metadata
      subPath: atmosphere-oidc-client
    - mountPath: /var/lib/apache2/oidc/keycloak.162-253-55-200.nip.io%2Frealms%2Fatmosphere.conf
      name: keystone-openid-metadata
      subPath: atmosphere-oidc-conf
    - mountPath: /var/lib/apache2/oidc/keycloak.162-253-55-200.nip.io%2Frealms%2Fatmosphere.provider
      name: keystone-openid-metadata
      subPath: atmosphere-oidc-provider
    - mountPath: /etc/ssl/certs/ca-certificates.crt
      name: ca-certificates
      readOnly: true
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-dlxkl
      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:memcached,openstack:percona-xtradb-haproxy
    - name: DEPENDENCY_JOBS
      value: keystone-db-sync,keystone-credential-setup,keystone-fernet-setup
    - 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-dlxkl
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    runAsUser: 42424
  serviceAccount: keystone-api
  serviceAccountName: keystone-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: etckeystone
  - emptyDir: {}
    name: wsgi-keystone
  - emptyDir: {}
    name: logs-apache
  - emptyDir: {}
    name: run-apache
  - name: keystone-etc
    secret:
      defaultMode: 292
      secretName: keystone-etc
  - configMap:
      defaultMode: 365
      name: keystone-bin
    name: keystone-bin
  - name: keystone-fernet-keys
    secret:
      defaultMode: 420
      secretName: keystone-fernet-keys
  - name: keystone-credential-keys
    secret:
      defaultMode: 420
      secretName: keystone-credential-keys
  - configMap:
      defaultMode: 420
      name: keystone-openid-metadata
    name: keystone-openid-metadata
  - hostPath:
      path: /etc/ssl/certs/ca-certificates.crt
      type: ""
    name: ca-certificates
  - name: kube-api-access-dlxkl
    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-09T22:36:17Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-09T22:37:25Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-09T22:37:25Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-09T22:35:20Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://e63580724afae5c5b574990e10e45545bcbfd032183bcfc78103b9c02d7865cd
    image: sha256:9bcae0123d55f19ef98449c6000a3b10c28ec49318599746810da265dda5a9f1
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone@sha256:e6bbce0c593b2279ecef2c04f6fe3416132fb2e2210d500c4dd884c71fee0aad
    lastState: {}
    name: keystone-api
    ready: true
    restartCount: 0
    started: true
    state:
      running:
        startedAt: "2026-04-09T22:36:18Z"
  hostIP: 162.253.55.200
  initContainerStatuses:
  - containerID: containerd://e9082ea3846397a0f71c29ff5cb69a4d94b2986afa59f898f6b0b0cdbc9fd443
    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://e9082ea3846397a0f71c29ff5cb69a4d94b2986afa59f898f6b0b0cdbc9fd443
        exitCode: 0
        finishedAt: "2026-04-09T22:36:17Z"
        reason: Completed
        startedAt: "2026-04-09T22:35:21Z"
  phase: Running
  podIP: 10.0.0.108
  podIPs:
  - ip: 10.0.0.108
  qosClass: BestEffort
  startTime: "2026-04-09T22:35:20Z"
