apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: "2026-04-17T01:10:47Z"
  generateName: capi-kubeadm-bootstrap-controller-manager-6558cd8d7f-
  labels:
    cluster.x-k8s.io/provider: bootstrap-kubeadm
    control-plane: controller-manager
    pod-template-hash: 6558cd8d7f
  name: capi-kubeadm-bootstrap-controller-manager-6558cd8d7f-7psfx
  namespace: capi-kubeadm-bootstrap-system
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: capi-kubeadm-bootstrap-controller-manager-6558cd8d7f
    uid: 5f38a94d-e8a7-4937-b57a-8dd3c5bcdc6c
  resourceVersion: "18312"
  uid: 5d6ad4dc-9e75-4723-9a6c-0c3cb5712965
spec:
  containers:
  - args:
    - --leader-elect
    - --diagnostics-address=:8443
    - --insecure-diagnostics=false
    - --feature-gates=MachinePool=true,KubeadmBootstrapFormatIgnition=false,PriorityQueue=false
    - --bootstrap-token-ttl=15m
    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/kubeadm-bootstrap-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-b6hck
      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-kubeadm-bootstrap-manager
  serviceAccountName: capi-kubeadm-bootstrap-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-kubeadm-bootstrap-webhook-service-cert
  - name: kube-api-access-b6hck
    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-17T01:10:47Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-04-17T01:18:07Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-04-17T01:18:07Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-04-17T01:10:47Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://773e74d0f2ce9ecca4f9583889530337debc1a94b1c6b84800268283713e3ea0
    image: harbor.atmosphere.dev/registry.k8s.io/cluster-api/kubeadm-bootstrap-controller:v1.10.5
    imageID: harbor.atmosphere.dev/registry.k8s.io/cluster-api/kubeadm-bootstrap-controller@sha256:e0f657538b3dc93a2eb0462561d0c895c78d9a515f048871bc90c927c0d4ce64
    lastState:
      terminated:
        containerID: containerd://5573b87c231789b142ef783b65cbeb617202df86075c51d9f3a6f6231974e240
        exitCode: 1
        finishedAt: "2026-04-17T01:18:02Z"
        message: |
          unt=1
          I0417 01:11:30.125445       1 controller.go:239] "Starting Controller" controller="kubeadmconfig" controllerGroup="bootstrap.cluster.x-k8s.io" controllerKind="KubeadmConfig"
          I0417 01:11:30.125464       1 controller.go:248] "Starting workers" controller="kubeadmconfig" controllerGroup="bootstrap.cluster.x-k8s.io" controllerKind="KubeadmConfig" worker count=10
          E0417 01:17:51.903803       1 leaderelection.go:429] Failed to update lock optimistically: Put "https://10.96.0.1:443/apis/coordination.k8s.io/v1/namespaces/capi-kubeadm-bootstrap-system/leases/kubeadm-bootstrap-manager-leader-election-capi?timeout=5s": context deadline exceeded, falling back to slow path
          E0417 01:17:56.903169       1 leaderelection.go:436] error retrieving resource lock capi-kubeadm-bootstrap-system/kubeadm-bootstrap-manager-leader-election-capi: Get "https://10.96.0.1:443/apis/coordination.k8s.io/v1/namespaces/capi-kubeadm-bootstrap-system/leases/kubeadm-bootstrap-manager-leader-election-capi?timeout=5s": context deadline exceeded
          I0417 01:17:56.903237       1 leaderelection.go:297] failed to renew lease capi-kubeadm-bootstrap-system/kubeadm-bootstrap-manager-leader-election-capi: context deadline exceeded
          I0417 01:17:56.903672       1 recorder.go:104] "capi-kubeadm-bootstrap-controller-manager-6558cd8d7f-7psfx_a07af195-8c4a-4633-92b0-d1404531654c stopped leading" logger="events" type="Normal" object={"kind":"Lease","namespace":"capi-kubeadm-bootstrap-system","name":"kubeadm-bootstrap-manager-leader-election-capi","uid":"0f8ca0e0-ef10-4f02-8246-be7f60a2ef77","apiVersion":"coordination.k8s.io/v1","resourceVersion":"18204"} reason="LeaderElection"
          I0417 01:17:56.903900       1 internal.go:538] "Stopping and waiting for non leader election runnables"
          I0417 01:17:56.903955       1 internal.go:542] "Stopping and waiting for leader election runnables"
          E0417 01:17:56.903962       1 main.go:306] "problem running manager" err="leader election lost" logger="setup"
          I0417 01:17:56.903982       1 internal.go:550] "Stopping and waiting for caches"
        reason: Error
        startedAt: "2026-04-17T01:11:07Z"
    name: manager
    ready: true
    restartCount: 1
    started: true
    state:
      running:
        startedAt: "2026-04-17T01:18:06Z"
  hostIP: 199.204.45.246
  phase: Running
  podIP: 10.0.0.97
  podIPs:
  - ip: 10.0.0.97
  qosClass: BestEffort
  startTime: "2026-04-17T01:10:47Z"
