apiVersion: v1
kind: Pod
metadata:
  creationTimestamp: "2026-03-05T17:17:15Z"
  generateName: capo-controller-manager-6975759b4b-
  labels:
    cluster.x-k8s.io/provider: infrastructure-openstack
    control-plane: capo-controller-manager
    pod-template-hash: 6975759b4b
  name: capo-controller-manager-6975759b4b-qwgw4
  namespace: capo-system
  ownerReferences:
  - apiVersion: apps/v1
    blockOwnerDeletion: true
    controller: true
    kind: ReplicaSet
    name: capo-controller-manager-6975759b4b
    uid: ceccd1e6-2f99-443a-817e-ffc79fc10124
  resourceVersion: "23517"
  uid: 9fbd3c34-73e9-4dad-b501-232730b280a6
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.4
    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-xlsmw
      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-xlsmw
    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-03-05T17:17:15Z"
    status: "True"
    type: Initialized
  - lastProbeTime: null
    lastTransitionTime: "2026-03-05T17:21:45Z"
    status: "True"
    type: Ready
  - lastProbeTime: null
    lastTransitionTime: "2026-03-05T17:21:45Z"
    status: "True"
    type: ContainersReady
  - lastProbeTime: null
    lastTransitionTime: "2026-03-05T17:17:15Z"
    status: "True"
    type: PodScheduled
  containerStatuses:
  - containerID: containerd://097d343531b278f3e191c82f37155c067d955c72c76313c8ef465bf47502c143
    image: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller:v0.12.4
    imageID: harbor.atmosphere.dev/registry.k8s.io/capi-openstack/capi-openstack-controller@sha256:237da708e483aa8c39766a217d25e45de52816d446764569c77550e6f56f0970
    lastState:
      terminated:
        containerID: containerd://14e57cb3dcaf1f81b67b13f968a0d5a306ffb43532fda7700b608e554359cee2
        exitCode: 1
        finishedAt: "2026-03-05T17:21:24Z"
        message: |
          ls/cache/reflector.go:243
          I0305 17:17:26.970624       1 controller.go:217] "Starting workers" controller="openstackserver" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackServer" worker count=10
          I0305 17:17:26.973214       1 controller.go:217] "Starting workers" controller="openstackfloatingippool" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackFloatingIPPool" worker count=1
          I0305 17:17:26.973265       1 controller.go:217] "Starting workers" controller="openstackmachine" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackMachine" worker count=10
          I0305 17:17:26.973406       1 controller.go:217] "Starting workers" controller="openstackcluster" controllerGroup="infrastructure.cluster.x-k8s.io" controllerKind="OpenStackCluster" worker count=10
          E0305 17:21:14.368269       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
          E0305 17:21:19.367692       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
          I0305 17:21:19.367786       1 leaderelection.go:297] failed to renew lease capo-system/controller-leader-election-capo: timed out waiting for the condition
          I0305 17:21:24.325612       1 recorder.go:104] "capo-controller-manager-6975759b4b-qwgw4_4af525ad-8513-49f5-b9d1-39f683d52c95 stopped leading" logger="events" type="Normal" object={"kind":"Lease","namespace":"capo-system","name":"controller-leader-election-capo","uid":"aeee7b40-30eb-4332-9c61-c03c79a09b38","apiVersion":"coordination.k8s.io/v1","resourceVersion":"23325"} reason="LeaderElection"
          E0305 17:21:24.326087       1 main.go:281] "problem running manager" err="leader election lost" logger="setup"
        reason: Error
        startedAt: "2026-03-05T17:17:16Z"
    name: manager
    ready: true
    restartCount: 1
    started: true
    state:
      running:
        startedAt: "2026-03-05T17:21:42Z"
  hostIP: 162.253.55.62
  phase: Running
  podIP: 10.0.0.212
  podIPs:
  - ip: 10.0.0.212
  qosClass: BestEffort
  startTime: "2026-03-05T17:17:15Z"
