apiVersion: v1
kind: Pod
metadata:
  annotations:
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-04-11T17:57:04Z"
  generateName: keystone-db-sync-
  labels:
    application: keystone
    batch.kubernetes.io/controller-uid: 034e1224-b704-48f7-9d46-07cde136a24c
    batch.kubernetes.io/job-name: keystone-db-sync
    component: db-sync
    controller-uid: 034e1224-b704-48f7-9d46-07cde136a24c
    job-name: keystone-db-sync
    release_group: keystone
  name: keystone-db-sync-64vm5
  namespace: openstack
  ownerReferences:
  - apiVersion: batch/v1
    blockOwnerDeletion: true
    controller: true
    kind: Job
    name: keystone-db-sync
    uid: 034e1224-b704-48f7-9d46-07cde136a24c
  resourceVersion: "6246"
  uid: 6019e3b5-52eb-4109-86a3-77ff4e72709b
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.199-19-213-193.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:2024.1@sha256:cf24f06018e7a9777ff22f4b3cc09a8d7b9d928e7151bac786d2cb24848ead62
    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-p62vk
      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-p62vk
      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-p62vk
    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-11T17:57:07Z"
    reason: PodCompleted
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-11T17:57:16Z"
    reason: PodCompleted
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-11T17:57:16Z"
    reason: PodCompleted
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-11T17:57:04Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://06c0e58e20864e8ea3f4faf6e37c8544af701d3f52a8dfc71334944df7005ea5
    image: sha256:f8c901f4f52d5b0f65f3a39b1846905feb035a7a0085385ac6bff902fd4b9c10
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone@sha256:cf24f06018e7a9777ff22f4b3cc09a8d7b9d928e7151bac786d2cb24848ead62
    lastState: {}
    name: keystone-db-sync
    ready: false
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://06c0e58e20864e8ea3f4faf6e37c8544af701d3f52a8dfc71334944df7005ea5
        exitCode: 0
        finishedAt: "2026-04-11T17:57:16Z"
        reason: Completed
        startedAt: "2026-04-11T17:57:07Z"
  hostIP: 199.19.213.193
  initContainerStatuses:
  - containerID: containerd://b1a24adf265eae06e12289d1b1a194303649a3ec86ca9f4e0e71681174114f88
    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://b1a24adf265eae06e12289d1b1a194303649a3ec86ca9f4e0e71681174114f88
        exitCode: 0
        finishedAt: "2026-04-11T17:57:07Z"
        reason: Completed
        startedAt: "2026-04-11T17:57:05Z"
  phase: Succeeded
  podIP: 10.0.0.25
  podIPs:
  - ip: 10.0.0.25
  qosClass: BestEffort
  startTime: "2026-04-11T17:57:04Z"
