apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: "2026-10-15T12:00:00Z"
  generateName: keystone-fernet-rotate-29867760-
  labels:
    application: keystone
    batch.kubernetes.io/controller-uid: 6b92f2d9-0f26-4732-b06d-677027b9201b
    batch.kubernetes.io/job-name: keystone-fernet-rotate-29867760
    component: fernet-rotate
    controller-uid: 6b92f2d9-0f26-4732-b06d-677027b9201b
    job-name: keystone-fernet-rotate-29867760
    release_group: keystone
  name: keystone-fernet-rotate-29867760-r6lfs
  namespace: openstack
  ownerReferences:
  - apiVersion: batch/v1
    blockOwnerDeletion: true
    controller: true
    kind: Job
    name: keystone-fernet-rotate-29867760
    uid: 6b92f2d9-0f26-4732-b06d-677027b9201b
  resourceVersion: "22140"
  uid: 4d1e7779-9442-4a21-b77e-98829fd1ea75
spec:
  containers:
  - command:
    - python
    - /tmp/fernet-manage.py
    - fernet_rotate
    env:
    - name: KEYSTONE_USER
      value: keystone
    - name: KEYSTONE_GROUP
      value: keystone
    - name: KUBERNETES_NAMESPACE
      value: openstack
    - name: KEYSTONE_KEYS_REPOSITORY
      value: /etc/keystone/fernet-keys/
    image: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone:2024.2@sha256:14780f8a357c2d8996475bbcb0a9a9cc705397e10776d742a59a79cefbb53799
    imagePullPolicy: IfNotPresent
    name: keystone-fernet-rotate
    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/keystone.conf
      name: keystone-etc
      readOnly: true
      subPath: keystone.conf
    - mountPath: /tmp/fernet-manage.py
      name: keystone-bin
      readOnly: true
      subPath: fernet-manage.py
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-9qtms
      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
    - name: DEPENDENCY_JOBS
      value: 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-9qtms
      readOnly: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: OnFailure
  schedulerName: default-scheduler
  securityContext:
    runAsUser: 42424
  serviceAccount: keystone-fernet-rotate
  serviceAccountName: keystone-fernet-rotate
  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
  - name: keystone-etc
    secret:
      defaultMode: 292
      secretName: keystone-etc
  - configMap:
      defaultMode: 365
      name: keystone-bin
    name: keystone-bin
  - name: kube-api-access-9qtms
    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-10-15T12:00:04Z"
    reason: PodCompleted
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-10-15T12:00:10Z"
    reason: PodCompleted
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-10-15T12:00:10Z"
    reason: PodCompleted
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-10-15T12:00:00Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://88350c4e14dbfcb714921c469c6948fa328b569a361495d89ffa29108be262f0
    image: sha256:614ac7811720c97122455cd29950a82cfd77660ffcfa22cb574f832a48272044
    imageID: harbor.atmosphere.dev/ghcr.io/vexxhost/keystone@sha256:14780f8a357c2d8996475bbcb0a9a9cc705397e10776d742a59a79cefbb53799
    lastState: {}
    name: keystone-fernet-rotate
    ready: false
    restartCount: 0
    started: false
    state:
      terminated:
        containerID: containerd://88350c4e14dbfcb714921c469c6948fa328b569a361495d89ffa29108be262f0
        exitCode: 0
        finishedAt: "2026-10-15T12:00:10Z"
        reason: Completed
        startedAt: "2026-10-15T12:00:04Z"
  hostIP: 162.253.55.44
  initContainerStatuses:
  - containerID: containerd://6852d4b81946e964a4759600c9edff632b74c4939b3b1890647324741de160f9
    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://6852d4b81946e964a4759600c9edff632b74c4939b3b1890647324741de160f9
        exitCode: 0
        finishedAt: "2026-10-15T12:00:03Z"
        reason: Completed
        startedAt: "2026-10-15T12:00:01Z"
  phase: Succeeded
  podIP: 10.0.0.16
  podIPs:
  - ip: 10.0.0.16
  qosClass: BestEffort
  startTime: "2026-10-15T12:00:00Z"
