apiVersion: v1
kind: Pod
metadata:
  annotations:
    openstackhelm.openstack.org/release_uuid: ""
  creationTimestamp: "2026-02-26T21:12:13Z"
  generateName: keystone-db-sync-
  labels:
    application: keystone
    batch.kubernetes.io/controller-uid: 951235bb-3b1e-45da-aa4f-e378d98a575e
    batch.kubernetes.io/job-name: keystone-db-sync
    component: db-sync
    controller-uid: 951235bb-3b1e-45da-aa4f-e378d98a575e
    job-name: keystone-db-sync
    release_group: keystone
  name: keystone-db-sync-mchr2
  namespace: openstack
  ownerReferences:
  - apiVersion: batch/v1
    blockOwnerDeletion: true
    controller: true
    kind: Job
    name: keystone-db-sync
    uid: 951235bb-3b1e-45da-aa4f-e378d98a575e
  resourceVersion: "6079"
  uid: 968b2894-c456-49d2-8d9c-6dd07d3c27ab
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-200.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:main@sha256:7d88bebe1e5e9578aa8c456341e00cfb06cf7244b7f8c3690f5e90001a7d9b98
    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-kvk9l
      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-kvk9l
      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-kvk9l
    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-26T21:12:16Z"
    reason: PodCompleted
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-02-26T21:12:27Z"
    reason: PodCompleted
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-02-26T21:12:27Z"
    reason: PodCompleted
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-02-26T21:12:13Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://06671725c32cf5d996609b89b98d1019e34a5a8e26686c8349b410dbdb6879c5
    image: sha256:dd60e57df9945210c754c0b2ae41a47545de907a088cecb5ebdad6917c357157
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone@sha256:7d88bebe1e5e9578aa8c456341e00cfb06cf7244b7f8c3690f5e90001a7d9b98
    lastState: {}
    name: keystone-db-sync
    ready: false
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://06671725c32cf5d996609b89b98d1019e34a5a8e26686c8349b410dbdb6879c5
        exitCode: 0
        finishedAt: "2026-02-26T21:12:26Z"
        reason: Completed
        startedAt: "2026-02-26T21:12:16Z"
  hostIP: 162.253.55.200
  initContainerStatuses:
  - containerID: containerd://945907f1c4c899b853998235a1041d5ea472b247a2467978beb06998e40bfe78
    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://945907f1c4c899b853998235a1041d5ea472b247a2467978beb06998e40bfe78
        exitCode: 0
        finishedAt: "2026-02-26T21:12:16Z"
        reason: Completed
        startedAt: "2026-02-26T21:12:14Z"
  phase: Succeeded
  podIP: 10.0.0.182
  podIPs:
  - ip: 10.0.0.182
  qosClass: BestEffort
  startTime: "2026-02-26T21:12:13Z"
