apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: "2026-05-09T13:39:53Z"
  generateName: capi-controller-manager-bc4cf8c95-
  labels:
    cluster.x-k8s.io/provider: cluster-api
    control-plane: controller-manager
    pod-template-hash: bc4cf8c95
  name: capi-controller-manager-bc4cf8c95-rr9cs
  namespace: capi-system
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: capi-controller-manager-bc4cf8c95
    uid: 02eb99cc-a0d9-4176-8478-eeee9a2c4abc
  resourceVersion: "25798"
  uid: 34f95744-b986-4b32-8bfd-f689476ebbed
spec:
  containers:
  - args:
    - --leader-elect
    - --diagnostics-address=:8443
    - --insecure-diagnostics=false
    - --feature-gates=MachinePool=true,ClusterResourceSet=true,ClusterTopology=true,RuntimeSDK=false,MachineSetPreflightChecks=true,MachineWaitForVolumeDetachConsiderVolumeAttachments=true,PriorityQueue=false
    command:
    - /manager
    env:
    - name: POD_NAMESPACE
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.namespace
    - name: POD_NAME
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.name
    - name: POD_UID
      valueFrom:
        fieldRef:
          apiVersion: v1
          fieldPath: metadata.uid
    image: harbor.atmosphere.dev/registry.k8s.io/cluster-api/cluster-api-controller:v1.10.5
    imagePullPolicy: IfNotPresent
    livenessProbe:
      failureThreshold: 3
      httpGet:
        path: /healthz
        port: healthz
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    name: manager
    ports:
    - containerPort: 9443
      name: webhook-server
      protocol: TCP
    - containerPort: 9440
      name: healthz
      protocol: TCP
    - containerPort: 8443
      name: metrics
      protocol: TCP
    readinessProbe:
      failureThreshold: 3
      httpGet:
        path: /readyz
        port: healthz
        scheme: HTTP
      periodSeconds: 10
      successThreshold: 1
      timeoutSeconds: 1
    resources: {}
    securityContext:
      allowPrivilegeEscalation: false
      capabilities:
        drop:
        - ALL
      privileged: false
      runAsGroup: 65532
      runAsUser: 65532
    terminationMessagePath: /dev/termination-log
    terminationMessagePolicy: FallbackToLogsOnError
    volumeMounts:
    - mountPath: /tmp/k8s-webhook-server/serving-certs
      name: cert
      readOnly: true
    - mountPath: /var/run/secrets/kubernetes.io/serviceaccount
      name: kube-api-access-nd676
      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: capi-manager
  serviceAccountName: capi-manager
  terminationGracePeriodSeconds: 10
  tolerations:
  - effect: NoSchedule
    key: node-role.kubernetes.io/master
  - effect: NoSchedule
    key: node-role.kubernetes.io/control-plane
  - effect: NoExecute
    key: node.kubernetes.io/not-ready
    operator: Exists
    tolerationSeconds: 300
  - effect: NoExecute
    key: node.kubernetes.io/unreachable
    operator: Exists
    tolerationSeconds: 300
  volumes:
  - name: cert
    secret:
      defaultMode: 420
      secretName: capi-webhook-service-cert
  - name: kube-api-access-nd676
    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-05-09T13:39:53Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-05-09T13:46:22Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-05-09T13:46:22Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-05-09T13:39:53Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://a91c9022d1f84de2228ffc147a31a1d0f9f44ab5e0b6d29914ea50320f5a4a6b
    image: harbor.atmosphere.dev/registry.k8s.io/cluster-api/cluster-api-controller:v1.10.5
    imageID: harbor.atmosphere.dev/registry.k8s.io/cluster-api/cluster-api-controller@sha256:d93407d031296336ccbabc8494005672dc048c4ebc616ccfc18f813d49bd87fc
    lastState:
      terminated:
        containerID: containerd://db5e9f7f4995cdfc5332bda95e3970ff7445a5ba97be1d7f9b8d571dae2d1cb5
        exitCode: 1
        finishedAt: "2026-05-09T13:45:49Z"
        message: |
          text deadline exceeded
          I0509 13:45:49.560433       1 internal.go:538] "Stopping and waiting for non leader election runnables"
          I0509 13:45:49.560393       1 recorder.go:104] "capi-controller-manager-bc4cf8c95-rr9cs_0fac3f72-7e96-4e7f-b126-c6002e94d9b1 stopped leading" logger="events" type="Normal" object={"kind":"Lease","namespace":"capi-system","name":"controller-leader-election-capi","uid":"3754fb5a-de09-4c4c-961f-37cc2e129e7e","apiVersion":"coordination.k8s.io/v1","resourceVersion":"25656"} reason="LeaderElection"
          I0509 13:45:49.560467       1 internal.go:542] "Stopping and waiting for leader election runnables"
          I0509 13:45:49.560576       1 internal.go:550] "Stopping and waiting for caches"
          I0509 13:45:49.560617       1 controller.go:268] "Shutdown signal received, waiting for all workers to finish" controller="clusterresourcesetbinding" controllerGroup="addons.cluster.x-k8s.io" controllerKind="ClusterResourceSetBinding"
          I0509 13:45:49.560629       1 internal.go:554] "Stopping and waiting for webhooks"
          I0509 13:45:49.560654       1 internal.go:557] "Stopping and waiting for HTTP servers"
          I0509 13:45:49.560666       1 internal.go:561] "Wait completed, proceeding to shutdown the manager"
          I0509 13:45:49.560681       1 controller.go:268] "Shutdown signal received, waiting for all workers to finish" controller="machineset" controllerGroup="cluster.x-k8s.io" controllerKind="MachineSet"
          I0509 13:45:49.560718       1 controller.go:270] "All workers finished" controller="clusterresourcesetbinding" controllerGroup="addons.cluster.x-k8s.io" controllerKind="ClusterResourceSetBinding"
          I0509 13:45:49.560746       1 controller.go:268] "Shutdown signal received, waiting for all workers to finish" controller="clustercache" controllerGroup="cluster.x-k8s.io" controllerKind="Cluster"
          I0509 13:45:49.560776       1 server.go:249] "Shutting down webhook server with timeout of 1 minute" logger="controller-runtime.webhook"
          E0509 13:45:49.560808       1 main.go:433] "Problem running manager" err="leader election lost" logger="setup"
        reason: Error
        startedAt: "2026-05-09T13:39:53Z"
    name: manager
    ready: true
    restartCount: 1
    started: true
    state:
      running:
        startedAt: "2026-05-09T13:46:21Z"
  hostIP: 199.204.45.235
  phase: Running
  podIP: 10.0.0.219
  podIPs:
  - ip: 10.0.0.219
  qosClass: BestEffort
  startTime: "2026-05-09T13:39:53Z"
