apiVersion: v1
kind: Pod
metadata:
  annotations:
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-03-29T02:04:52Z"
  generateName: keystone-db-sync-
  labels:
    application: keystone
    batch.kubernetes.io/controller-uid: 34ea3f64-45de-4cd6-8c1c-8f7adb43daa8
    batch.kubernetes.io/job-name: keystone-db-sync
    component: db-sync
    controller-uid: 34ea3f64-45de-4cd6-8c1c-8f7adb43daa8
    job-name: keystone-db-sync
    release_group: keystone
  name: keystone-db-sync-xjpp9
  namespace: openstack
  ownerReferences:
  - apiVersion: batch/v1
    blockOwnerDeletion: true
    controller: true
    kind: Job
    name: keystone-db-sync
    uid: 34ea3f64-45de-4cd6-8c1c-8f7adb43daa8
  resourceVersion: "6365"
  uid: 14fad2f2-42ea-4e85-a02d-6209f984fee9
spec:
  containers:
  - command:
    - /bin/bash
    - -c
    - /tmp/db-sync.sh
    env:
    - name: OS_BOOTSTRAP_ADMIN_URL
      value: http://keystone-api.openstack.svc.cluster.local:5000/
    - name: OS_BOOTSTRAP_INTERNAL_URL
      value: http://keystone-api.openstack.svc.cluster.local:5000/
    - name: OS_BOOTSTRAP_PUBLIC_URL
      value: https://identity.162-253-55-221.nip.io/
    - name: OPENSTACK_CONFIG_FILE
      value: /etc/keystone/keystone.conf
    - name: OPENSTACK_CONFIG_DB_SECTION
      value: database
    - name: OPENSTACK_CONFIG_DB_KEY
      value: connection
    - name: OS_IDENTITY_API_VERSION
      value: "3"
    - name: OS_AUTH_URL
      valueFrom:
        secretKeyRef:
          key: OS_AUTH_URL
          name: keystone-keystone-admin
    - name: OS_REGION_NAME
      valueFrom:
        secretKeyRef:
          key: OS_REGION_NAME
          name: keystone-keystone-admin
    - name: OS_INTERFACE
      valueFrom:
        secretKeyRef:
          key: OS_INTERFACE
          name: keystone-keystone-admin
    - name: OS_ENDPOINT_TYPE
      valueFrom:
        secretKeyRef:
          key: OS_INTERFACE
          name: keystone-keystone-admin
    - name: OS_PROJECT_DOMAIN_NAME
      valueFrom:
        secretKeyRef:
          key: OS_PROJECT_DOMAIN_NAME
          name: keystone-keystone-admin
    - name: OS_PROJECT_NAME
      valueFrom:
        secretKeyRef:
          key: OS_PROJECT_NAME
          name: keystone-keystone-admin
    - name: OS_USER_DOMAIN_NAME
      valueFrom:
        secretKeyRef:
          key: OS_USER_DOMAIN_NAME
          name: keystone-keystone-admin
    - name: OS_USERNAME
      valueFrom:
        secretKeyRef:
          key: OS_USERNAME
          name: keystone-keystone-admin
    - name: OS_PASSWORD
      valueFrom:
        secretKeyRef:
          key: OS_PASSWORD
          name: keystone-keystone-admin
    - name: OS_DEFAULT_DOMAIN
      valueFrom:
        secretKeyRef:
          key: OS_DEFAULT_DOMAIN
          name: keystone-keystone-admin
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone:2025.1@sha256:adfa098b5ac03326572cabd4b6750192024e9e04fa97815314ace33629398901
    imagePullPolicy: IfNotPresent
    name: keystone-db-sync
    resources: {}
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /tmp
      name: pod-tmp
    - mountPath: /tmp/db-sync.sh
      name: db-sync-sh
      readOnly: true
      subPath: db-sync.sh
    - mountPath: /etc/keystone
      name: etc-service
    - mountPath: /etc/keystone/keystone.conf
      name: db-sync-conf
      readOnly: true
      subPath: keystone.conf
    - mountPath: /etc/keystone/logging.conf
      name: db-sync-conf
      readOnly: true
      subPath: logging.conf
    - mountPath: /tmp/endpoint-update.py
      name: db-sync-sh
      readOnly: true
      subPath: endpoint-update.py
    - mountPath: /etc/keystone/fernet-keys/
      name: keystone-fernet-keys
      readOnly: true
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-tl8gq
      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
    - name: DEPENDENCY_JOBS
      value: keystone-db-init,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-tl8gq
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: OnFailure
  schedulerName: default-scheduler
  securityContext: {}
  serviceAccount: keystone-db-sync
  serviceAccountName: keystone-db-sync
  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
  - configMap:
      defaultMode: 365
      name: keystone-bin
    name: db-sync-sh
  - emptyDir: {}
    name: etc-service
  - name: db-sync-conf
    secret:
      defaultMode: 292
      secretName: keystone-etc
  - name: keystone-fernet-keys
    secret:
      defaultMode: 420
      secretName: keystone-fernet-keys
  - name: kube-api-access-tl8gq
    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-03-29T02:04:55Z"
    reason: PodCompleted
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-03-29T02:05:06Z"
    reason: PodCompleted
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-03-29T02:05:06Z"
    reason: PodCompleted
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-03-29T02:04:52Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://d903e4649d33add41128ab609aa5b77efba11e0ae910eeee136e21e8a61b8a28
    image: sha256:a88162c3f3f61764759d3f0a9b15038b349c69a5daba95149b74640b9c6bf3e5
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone@sha256:adfa098b5ac03326572cabd4b6750192024e9e04fa97815314ace33629398901
    lastState: {}
    name: keystone-db-sync
    ready: false
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://d903e4649d33add41128ab609aa5b77efba11e0ae910eeee136e21e8a61b8a28
        exitCode: 0
        finishedAt: "2026-03-29T02:05:05Z"
        reason: Completed
        startedAt: "2026-03-29T02:04:55Z"
  hostIP: 162.253.55.221
  initContainerStatuses:
  - containerID: containerd://fcdd0f021fc17f11ab68489cc7c92fb7e4971b6230afe467963271eb8fa32f13
    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://fcdd0f021fc17f11ab68489cc7c92fb7e4971b6230afe467963271eb8fa32f13
        exitCode: 0
        finishedAt: "2026-03-29T02:04:54Z"
        reason: Completed
        startedAt: "2026-03-29T02:04:52Z"
  phase: Succeeded
  podIP: 10.0.0.197
  podIPs:
  - ip: 10.0.0.197
  qosClass: BestEffort
  startTime: "2026-03-29T02:04:52Z"
