--- apiVersion: v1 kind: Pod metadata: annotations: k8s.ovn.org/pod-networks: '{"default":{"ip_addresses":["10.132.0.7/23"],"mac_address":"0a:58:0a:84:00:07","gateway_ips":["10.132.0.1"],"routes":[{"dest":"10.132.0.0/14","nextHop":"10.132.0.1"},{"dest":"172.31.0.0/16","nextHop":"10.132.0.1"},{"dest":"169.254.0.5/32","nextHop":"10.132.0.1"},{"dest":"100.64.0.0/16","nextHop":"10.132.0.1"}],"ip_address":"10.132.0.7/23","gateway_ip":"10.132.0.1","role":"primary"}}' k8s.v1.cni.cncf.io/network-status: |- [{ "name": "ovn-kubernetes", "interface": "eth0", "ips": [ "10.132.0.7" ], "mac": "0a:58:0a:84:00:07", "default": true, "dns": {} }] openshift.io/scc: restricted-v2 seccomp.security.alpha.kubernetes.io/pod: runtime/default security.openshift.io/validated-scc-subject-type: user creationTimestamp: "2026-07-23T00:00:00Z" generateName: image-pruner-29746080- generation: 1 labels: batch.kubernetes.io/controller-uid: 6b748630-6493-4d09-87d4-262c2dede16e batch.kubernetes.io/job-name: image-pruner-29746080 controller-uid: 6b748630-6493-4d09-87d4-262c2dede16e job-name: image-pruner-29746080 managedFields: - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:generateName: {} f:labels: .: {} f:batch.kubernetes.io/controller-uid: {} f:batch.kubernetes.io/job-name: {} f:controller-uid: {} f:job-name: {} f:ownerReferences: .: {} k:{"uid":"6b748630-6493-4d09-87d4-262c2dede16e"}: {} f:spec: f:affinity: {} f:containers: k:{"name":"image-pruner"}: .: {} f:args: {} f:command: {} f:image: {} f:imagePullPolicy: {} f:name: {} f:resources: .: {} f:requests: .: {} f:cpu: {} f:memory: {} f:securityContext: .: {} f:readOnlyRootFilesystem: {} f:terminationMessagePath: {} f:terminationMessagePolicy: {} f:volumeMounts: .: {} k:{"mountPath":"/var/run/configmaps/serviceca"}: .: {} f:mountPath: {} f:name: {} f:readOnly: {} f:dnsPolicy: {} f:enableServiceLinks: {} f:priorityClassName: {} f:restartPolicy: {} f:schedulerName: {} f:securityContext: {} f:serviceAccount: {} f:serviceAccountName: {} f:terminationGracePeriodSeconds: {} f:volumes: .: {} k:{"name":"serviceca"}: .: {} f:configMap: .: {} f:defaultMode: {} f:name: {} f:name: {} manager: kube-controller-manager operation: Update time: "2026-07-23T00:00:00Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:status: f:conditions: .: {} k:{"type":"PodScheduled"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:message: {} f:reason: {} f:status: {} f:type: {} manager: kube-scheduler operation: Update subresource: status time: "2026-07-23T00:04:21Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: f:k8s.ovn.org/pod-networks: {} manager: ip-10-0-135-163 operation: Update subresource: status time: "2026-07-23T00:04:45Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:metadata: f:annotations: f:k8s.v1.cni.cncf.io/network-status: {} manager: multus-daemon operation: Update subresource: status time: "2026-07-23T00:04:47Z" - apiVersion: v1 fieldsType: FieldsV1 fieldsV1: f:status: f:conditions: k:{"type":"ContainersReady"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:observedGeneration: {} f:reason: {} f:status: {} f:type: {} k:{"type":"Initialized"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:observedGeneration: {} f:reason: {} f:status: {} f:type: {} k:{"type":"PodReadyToStartContainers"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:observedGeneration: {} f:status: {} f:type: {} k:{"type":"PodScheduled"}: f:observedGeneration: {} k:{"type":"Ready"}: .: {} f:lastProbeTime: {} f:lastTransitionTime: {} f:observedGeneration: {} f:reason: {} f:status: {} f:type: {} f:containerStatuses: {} f:hostIP: {} f:hostIPs: {} f:observedGeneration: {} f:phase: {} f:podIP: {} f:podIPs: .: {} k:{"ip":"10.132.0.7"}: .: {} f:ip: {} f:startTime: {} manager: kubelet operation: Update subresource: status time: "2026-07-23T00:09:50Z" name: image-pruner-29746080-c9kg2 namespace: openshift-image-registry ownerReferences: - apiVersion: batch/v1 blockOwnerDeletion: true controller: true kind: Job name: image-pruner-29746080 uid: 6b748630-6493-4d09-87d4-262c2dede16e resourceVersion: "11425" uid: 1b718f23-82f5-4b53-9f6b-e17f42514a82 spec: affinity: {} containers: - args: - -c - | set -eu "$@" && exit for i in 1 2 3 4 5; do echo "attempt #$i has failed (exit code $?), going to make another attempt..." >&2 sleep $(($i * 30)) "$@" && break # this is the last command of the script, so its last failure will be exit code of the script done - arg0 - oc - adm - prune - images - --confirm=true - --certificate-authority=/var/run/configmaps/serviceca/service-ca.crt - --keep-tag-revisions=3 - --keep-younger-than=60m - --ignore-invalid-refs=true - --loglevel=1 - --prune-registry=true - --registry-url=https://image-registry.openshift-image-registry.svc:5000 command: - /bin/sh image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e83687a3e51e78c37199d4d4504faf8bfeec5d995d123db950ef57fe67957539 imagePullPolicy: IfNotPresent name: image-pruner resources: requests: cpu: 100m memory: 256Mi securityContext: allowPrivilegeEscalation: false capabilities: drop: - ALL readOnlyRootFilesystem: true runAsNonRoot: true runAsUser: 1000540000 terminationMessagePath: /dev/termination-log terminationMessagePolicy: FallbackToLogsOnError volumeMounts: - mountPath: /var/run/configmaps/serviceca name: serviceca readOnly: true - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-dm72c readOnly: true dnsPolicy: ClusterFirst enableServiceLinks: true imagePullSecrets: - name: pruner-dockercfg-z6zcc nodeName: ip-10-0-135-163.ec2.internal preemptionPolicy: PreemptLowerPriority priority: 2000000000 priorityClassName: system-cluster-critical restartPolicy: Never schedulerName: default-scheduler securityContext: fsGroup: 1000540000 seLinuxOptions: level: s0:c23,c17 seccompProfile: type: RuntimeDefault serviceAccount: pruner serviceAccountName: pruner terminationGracePeriodSeconds: 30 tolerations: - effect: NoExecute key: node.kubernetes.io/not-ready operator: Exists tolerationSeconds: 300 - effect: NoExecute key: node.kubernetes.io/unreachable operator: Exists tolerationSeconds: 300 - effect: NoSchedule key: node.kubernetes.io/memory-pressure operator: Exists volumes: - configMap: defaultMode: 420 name: serviceca name: serviceca - name: kube-api-access-dm72c 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 - configMap: items: - key: service-ca.crt path: service-ca.crt name: openshift-service-ca.crt status: conditions: - lastProbeTime: null lastTransitionTime: "2026-07-23T00:09:50Z" observedGeneration: 1 status: "False" type: PodReadyToStartContainers - lastProbeTime: null lastTransitionTime: "2026-07-23T00:04:45Z" observedGeneration: 1 reason: PodCompleted status: "True" type: Initialized - lastProbeTime: null lastTransitionTime: "2026-07-23T00:09:48Z" observedGeneration: 1 reason: PodCompleted status: "False" type: Ready - lastProbeTime: null lastTransitionTime: "2026-07-23T00:09:48Z" observedGeneration: 1 reason: PodCompleted status: "False" type: ContainersReady - lastProbeTime: null lastTransitionTime: "2026-07-23T00:04:45Z" observedGeneration: 1 status: "True" type: PodScheduled containerStatuses: - allocatedResources: cpu: 100m memory: 256Mi containerID: cri-o://f2456160620c9fc1a9c5bd6d67af84891805cd597cc4131d929176af1ac36737 image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:e83687a3e51e78c37199d4d4504faf8bfeec5d995d123db950ef57fe67957539 imageID: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:d1bf31b6a3ba5992b54fb31b88c29e6ba5382478b4b5fd5e098a4acee8c92441 lastState: {} name: image-pruner ready: false resources: requests: cpu: 100m memory: 256Mi restartCount: 0 started: false state: terminated: containerID: cri-o://f2456160620c9fc1a9c5bd6d67af84891805cd597cc4131d929176af1ac36737 exitCode: 0 finishedAt: "2026-07-23T00:09:48Z" reason: Completed startedAt: "2026-07-23T00:04:47Z" user: linux: gid: 0 supplementalGroups: - 0 - 1000540000 uid: 1000540000 volumeMounts: - mountPath: /var/run/configmaps/serviceca name: serviceca readOnly: true recursiveReadOnly: Disabled - mountPath: /var/run/secrets/kubernetes.io/serviceaccount name: kube-api-access-dm72c readOnly: true recursiveReadOnly: Disabled hostIP: 10.0.135.163 hostIPs: - ip: 10.0.135.163 observedGeneration: 1 phase: Succeeded podIP: 10.132.0.7 podIPs: - ip: 10.132.0.7 qosClass: Burstable startTime: "2026-07-23T00:04:45Z"