apiVersion: v1
kind: Pod
metadata:
  annotations:
    checksum/config: a08788114f2a5ae0b68a6f0a95b9e026792ccf52cea3f0e8fcbe1445cb567f2b
    checksum/monitoring-config: c843a8170f5de876475fec5add61a10e2bfb2201c85533a0b30a0e14dd0ad4d1
    checksum/rbac: d17e9ce9e2c119d078279c98571d4a6843ed7c29d9cd74be95300dfd2b7cac54
  creationTimestamp: "2026-07-14T06:43:05Z"
  generateName: cloudnative-pg-b675dcfc5-
  labels:
    app.kubernetes.io/instance: cloudnative-pg
    app.kubernetes.io/name: cloudnative-pg
    pod-template-hash: b675dcfc5
  name: cloudnative-pg-b675dcfc5-llwxl
  namespace: openstack
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: cloudnative-pg-b675dcfc5
    uid: eaf96b0b-dc22-4621-b251-a52d872d2ce8
  resourceVersion: "8057"
  uid: 9540f6e4-be11-493b-87de-58ee15c4d82a
spec:
  containers:
  - args:
    - controller
    - --leader-elect
    - --max-concurrent-reconciles=10
    - --config-map-name=cnpg-controller-manager-config
    - --webhook-port=9443
    command:
    - /manager
    env:
    - name: OPERATOR_IMAGE_NAME
      value: harbor.atmosphere.dev/ghcr.io/cloudnative-pg/cloudnative-pg:1.28.4
    - name: OPERATOR_NAMESPACE
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.namespace
    - name: MONITORING_QUERIES_CONFIGMAP
      value: cnpg-default-monitoring
    image: harbor.atmosphere.dev/ghcr.io/cloudnative-pg/cloudnative-pg:1.28.4
    imagePullPolicy: IfNotPresent
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /readyz
        port: webhook-server
        scheme: HTTPS
      initialDelaySeconds: 3
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    name: manager
    ports:
    - containerPort: 8080
      name: metrics
      protocol: TCP
    - containerPort: 9443
      name: webhook-server
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /readyz
        port: webhook-server
        scheme: HTTPS
      initialDelaySeconds: 3
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources:
      limits:
        cpu: 500m
      requests:
        cpu: 500m
    securityContext:
      allowPrivilegeEscalation: false
      capabilities:
        drop:
        - ALL
      readOnlyRootFilesystem: true
      runAsGroup: 10001
      runAsUser: 10001
      seccompProfile:
        type: RuntimeDefault
    startupProbe:
      failureThreshold: 6
      httpGet:
        path: /readyz
        port: webhook-server
        scheme: HTTPS
      periodSeconds: 5
      successThreshold: 1
      timeoutSeconds: 1
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: File
    volumeMounts:
    - mountPath: /controller
      name: scratch-data
    - mountPath: /run/secrets/cnpg.io/webhook
      name: webhook-certificates
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-56w8f
      readOnly: true
  dnsPolicy: ClusterFirst
  enableServiceLinks: true
  nodeName: instance
  nodeSelector:
    openstack-control-plane: enabled
  preemptionPolicy: PreemptLowerPriority
  priority: 0
  restartPolicy: Always
  schedulerName: default-scheduler
  securityContext:
    runAsNonRoot: true
    seccompProfile:
      type: RuntimeDefault
  serviceAccount: cloudnative-pg
  serviceAccountName: cloudnative-pg
  terminationGracePeriodSeconds: 10
  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: scratch-data
  - name: webhook-certificates
    secret:
      defaultMode: 420
      optional: true
      secretName: cnpg-webhook-cert
  - name: kube-api-access-56w8f
    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-07-14T06:43:05Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-07-14T06:57:56Z"
    message: 'containers with unready status: [manager]'
    reason: ContainersNotReady
    status: "False"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-07-14T06:57:56Z"
    message: 'containers with unready status: [manager]'
    reason: ContainersNotReady
    status: "False"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-07-14T06:43:05Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://ea6999ae382a51685ce2ac0b0434a8cfc95147be6ead4eef0af2be36dc88ca4e
    image: harbor.atmosphere.dev/ghcr.io/cloudnative-pg/cloudnative-pg:1.28.4
    imageID: harbor.atmosphere.dev/ghcr.io/cloudnative-pg/cloudnative-pg@sha256:c83a866a7f2c8b2def04bf7a8e6a7f0e9a5c2736a1c710e24e29edf12e03fcd9
    lastState:
      terminated:
        containerID: containerd://ea6999ae382a51685ce2ac0b0434a8cfc95147be6ead4eef0af2be36dc88ca4e
        exitCode: 1
        finishedAt: "2026-07-14T06:57:55Z"
        reason: Error
        startedAt: "2026-07-14T06:55:55Z"
    name: manager
    ready: false
    restartCount: 5
    started: false
    state:
      waiting:
        message: back-off 2m40s restarting failed container=manager pod=cloudnative-pg-b675dcfc5-llwxl_openstack(9540f6e4-be11-493b-87de-58ee15c4d82a)
        reason: CrashLoopBackOff
  hostIP: 199.204.45.113
  phase: Running
  podIP: 10.0.0.82
  podIPs:
  - ip: 10.0.0.82
  qosClass: Burstable
  startTime: "2026-07-14T06:43:05Z"
