apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: "2026-06-03T00:51:46Z"
  generateName: capo-controller-manager-65565fdb7f-
  labels:
    cluster.x-k8s.io/provider: infrastructure-openstack
    control-plane: capo-controller-manager
    pod-template-hash: 65565fdb7f
  name: capo-controller-manager-65565fdb7f-qjvfk
  namespace: capo-system
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: capo-controller-manager-65565fdb7f
    uid: 53fdc100-c1d8-4319-8766-4b01d54a6e37
  resourceVersion: "30967"
  uid: 18eb89a2-e565-45ff-9cf2-b29837f0eda2
spec:
  containers:
  - args:
    - --leader-elect
    - --v=2
    - --diagnostics-address=127.0.0.1:8080
    - --insecure-diagnostics=true
    command:
    - /manager
    env:
    - name: CLUSTER_API_OPENSTACK_INSTANCE_CREATE_TIMEOUT
      value: "10"
    image: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller:v0.12.7
    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
    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-7kbjm
      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: capo-manager
  serviceAccountName: capo-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: capo-webhook-service-cert
  - name: kube-api-access-7kbjm
    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-06-03T00:51:46Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-06-03T01:06:47Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-06-03T01:06:47Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-06-03T00:51:46Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://bec0aff3d8827742e4d7b4c73f5ed51db0a9c55c9810981e8489522ae2822130
    image: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller:v0.12.7
    imageID: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller@sha256:b964c2f374ad4f26a593749d3c737492d5c1821db143b26596c9285b9055a8b4
    lastState:
      terminated:
        containerID: containerd://8c6fe837e9309ca638b6293afc447ce15e5c33bf19e4eeea0bd69257ed07438b
        exitCode: 1
        finishedAt: "2026-06-03T01:06:43Z"
        message: |
          s unable to return a response in the time allotted, but may still be processing the request (put leases.coordination.k8s.io controller-leader-election-capo), falling back to slow path
          E0603 01:01:45.274533       1 leaderelection.go:429] Failed to update lock optimitically: Put "https://10.96.0.1:443/apis/coordination.k8s.io/v1/namespaces/capo-system/leases/controller-leader-election-capo?timeout=5s": context deadline exceeded (Client.Timeout exceeded while awaiting headers), falling back to slow path
          E0603 01:05:48.115329       1 leaderelection.go:429] Failed to update lock optimitically: Put "https://10.96.0.1:443/apis/coordination.k8s.io/v1/namespaces/capo-system/leases/controller-leader-election-capo?timeout=5s": net/http: request canceled (Client.Timeout exceeded while awaiting headers), falling back to slow path
          E0603 01:06:02.574562       1 leaderelection.go:429] Failed to update lock optimitically: Put "https://10.96.0.1:443/apis/coordination.k8s.io/v1/namespaces/capo-system/leases/controller-leader-election-capo?timeout=5s": net/http: request canceled (Client.Timeout exceeded while awaiting headers), falling back to slow path
          E0603 01:06:07.581524       1 leaderelection.go:472] Failed to update lock: Put "https://10.96.0.1:443/apis/coordination.k8s.io/v1/namespaces/capo-system/leases/controller-leader-election-capo?timeout=5s": context deadline exceeded
          I0603 01:06:07.581582       1 leaderelection.go:297] failed to renew lease capo-system/controller-leader-election-capo: timed out waiting for the condition
          E0603 01:06:10.849195       1 main.go:281] "problem running manager" err="leader election lost" logger="setup"
          I0603 01:06:10.849199       1 recorder.go:104] "capo-controller-manager-65565fdb7f-qjvfk_680ea498-6689-4405-b3d6-10856bff3a5d stopped leading" logger="events" type="Normal" object={"kind":"Lease","namespace":"capo-system","name":"controller-leader-election-capo","uid":"b96515a5-1054-4159-aa73-10792b33d3f7","apiVersion":"coordination.k8s.io/v1","resourceVersion":"30876"} reason="LeaderElection"
        reason: Error
        startedAt: "2026-06-03T00:51:47Z"
    name: manager
    ready: true
    restartCount: 1
    started: true
    state:
      running:
        startedAt: "2026-06-03T01:06:46Z"
  hostIP: 199.204.45.22
  phase: Running
  podIP: 10.0.0.146
  podIPs:
  - ip: 10.0.0.146
  qosClass: BestEffort
  startTime: "2026-06-03T00:51:46Z"
