github.com/castai/kvisor@v1.7.1-0.20240516114728-b3572a2607b5/demo/5.oom/oom_killed2.yaml (about) 1 apiVersion: v1 2 kind: Pod 3 metadata: 4 annotations: 5 cni.projectcalico.org/containerID: 44ad7969e2176a8fbff3286bfa44c701b663b4c2dfe5cc7b0016e8631e02c620 6 cni.projectcalico.org/podIP: 10.48.1.20/32 7 cni.projectcalico.org/podIPs: 10.48.1.20/32 8 creationTimestamp: "2023-12-26T09:17:09Z" 9 generateName: oom-test-7d9c6ffc77- 10 labels: 11 app: oom-test 12 pod-template-hash: 7d9c6ffc77 13 name: oom-test-7d9c6ffc77-9wz45 14 namespace: demo 15 ownerReferences: 16 - apiVersion: apps/v1 17 blockOwnerDeletion: true 18 controller: true 19 kind: ReplicaSet 20 name: oom-test-7d9c6ffc77 21 uid: 285f001f-d4ce-416d-badb-23f7d975b086 22 resourceVersion: "92761887" 23 uid: a8ef2b43-294f-4691-98cc-f7c6a37fdc3e 24 spec: 25 containers: 26 - args: 27 - -mem-total 28 - 1Gi 29 - -mem-alloc-size 30 - 100Mi 31 image: vish/stress 32 imagePullPolicy: Always 33 name: stress 34 resources: 35 limits: 36 memory: 10Mi 37 requests: 38 memory: 10Mi 39 terminationMessagePath: /dev/termination-log 40 terminationMessagePolicy: File 41 volumeMounts: 42 - mountPath: /var/run/secrets/kubernetes.io/serviceaccount 43 name: kube-api-access-qzkpm 44 readOnly: true 45 dnsPolicy: ClusterFirst 46 enableServiceLinks: true 47 nodeName: gke-demo-pool-1-96567561-ukhh 48 preemptionPolicy: PreemptLowerPriority 49 priority: 0 50 restartPolicy: Always 51 schedulerName: default-scheduler 52 securityContext: {} 53 serviceAccount: default 54 serviceAccountName: default 55 terminationGracePeriodSeconds: 30 56 tolerations: 57 - effect: NoExecute 58 key: node.kubernetes.io/not-ready 59 operator: Exists 60 tolerationSeconds: 300 61 - effect: NoExecute 62 key: node.kubernetes.io/unreachable 63 operator: Exists 64 tolerationSeconds: 300 65 volumes: 66 - name: kube-api-access-qzkpm 67 projected: 68 defaultMode: 420 69 sources: 70 - serviceAccountToken: 71 expirationSeconds: 3607 72 path: token 73 - configMap: 74 items: 75 - key: ca.crt 76 path: ca.crt 77 name: kube-root-ca.crt 78 - downwardAPI: 79 items: 80 - fieldRef: 81 apiVersion: v1 82 fieldPath: metadata.namespace 83 path: namespace 84 status: 85 conditions: 86 - lastProbeTime: null 87 lastTransitionTime: "2023-12-26T09:17:09Z" 88 status: "True" 89 type: Initialized 90 - lastProbeTime: null 91 lastTransitionTime: "2023-12-26T09:22:57Z" 92 message: 'containers with unready status: [stress]' 93 reason: ContainersNotReady 94 status: "False" 95 type: Ready 96 - lastProbeTime: null 97 lastTransitionTime: "2023-12-26T09:22:57Z" 98 message: 'containers with unready status: [stress]' 99 reason: ContainersNotReady 100 status: "False" 101 type: ContainersReady 102 - lastProbeTime: null 103 lastTransitionTime: "2023-12-26T09:17:09Z" 104 status: "True" 105 type: PodScheduled 106 containerStatuses: 107 - containerID: containerd://483b0a06606d6f71a51664274febcd07dc84aa5331f4ae40071eca28b69f340b 108 image: docker.io/vish/stress:latest 109 imageID: docker.io/vish/stress@sha256:b6456a3df6db5e063e1783153627947484a3db387be99e49708c70a9a15e7177 110 lastState: 111 terminated: 112 containerID: containerd://483b0a06606d6f71a51664274febcd07dc84aa5331f4ae40071eca28b69f340b 113 exitCode: 137 114 finishedAt: "2023-12-26T09:22:56Z" 115 reason: OOMKilled 116 startedAt: "2023-12-26T09:22:56Z" 117 name: stress 118 ready: false 119 restartCount: 6 120 started: false 121 state: 122 waiting: 123 message: back-off 5m0s restarting failed container=stress pod=oom-test-7d9c6ffc77-9wz45_demo(a8ef2b43-294f-4691-98cc-f7c6a37fdc3e) 124 reason: CrashLoopBackOff 125 hostIP: 10.128.0.6 126 phase: Running 127 podIP: 10.48.1.20 128 podIPs: 129 - ip: 10.48.1.20 130 qosClass: Burstable 131 startTime: "2023-12-26T09:17:09Z"