Created
February 12, 2020 23:21
-
-
Save rifelpet/ea3938ddbfe181ab327ed08e7fd7823a to your computer and use it in GitHub Desktop.
Failed Pod
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| annotations: | |
| kubectl.kubernetes.io/last-applied-configuration: | | |
| {"apiVersion":"v1","kind":"Pod","metadata":{"annotations":{},"name":"termination-demo","namespace":"default"},"spec":{"containers":[{"args":["-c","sleep 10 \u0026\u0026 echo Sleep expired \u003e /dev/termination-log \u0026\u0026 exit 1"],"command":["/bin/sh"],"image":"debian","name":"termination-demo-container"}],"restartPolicy":"Never"}} | |
| creationTimestamp: "2020-02-12T23:20:07Z" | |
| name: termination-demo | |
| namespace: default | |
| resourceVersion: "3520883" | |
| selfLink: /api/v1/namespaces/default/pods/termination-demo | |
| uid: fd8f0741-3240-471a-a9a4-92f31d014d17 | |
| spec: | |
| containers: | |
| - args: | |
| - -c | |
| - sleep 10 && echo Sleep expired > /dev/termination-log && exit 1 | |
| command: | |
| - /bin/sh | |
| image: debian | |
| imagePullPolicy: Always | |
| name: termination-demo-container | |
| resources: {} | |
| terminationMessagePath: /dev/termination-log | |
| terminationMessagePolicy: File | |
| volumeMounts: | |
| - mountPath: /var/run/secrets/kubernetes.io/serviceaccount | |
| name: default-token-6tj9h | |
| readOnly: true | |
| dnsPolicy: ClusterFirst | |
| enableServiceLinks: true | |
| nodeName: docker-desktop | |
| priority: 0 | |
| restartPolicy: Never | |
| schedulerName: default-scheduler | |
| securityContext: {} | |
| serviceAccount: default | |
| serviceAccountName: default | |
| 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 | |
| volumes: | |
| - name: default-token-6tj9h | |
| secret: | |
| defaultMode: 420 | |
| secretName: default-token-6tj9h | |
| status: | |
| conditions: | |
| - lastProbeTime: null | |
| lastTransitionTime: "2020-02-12T23:20:08Z" | |
| status: "True" | |
| type: Initialized | |
| - lastProbeTime: null | |
| lastTransitionTime: "2020-02-12T23:20:24Z" | |
| message: 'containers with unready status: [termination-demo-container]' | |
| reason: ContainersNotReady | |
| status: "False" | |
| type: Ready | |
| - lastProbeTime: null | |
| lastTransitionTime: "2020-02-12T23:20:24Z" | |
| message: 'containers with unready status: [termination-demo-container]' | |
| reason: ContainersNotReady | |
| status: "False" | |
| type: ContainersReady | |
| - lastProbeTime: null | |
| lastTransitionTime: "2020-02-12T23:20:07Z" | |
| status: "True" | |
| type: PodScheduled | |
| containerStatuses: | |
| - containerID: docker://ae73503c1cb85e8fe9843cd4e67220e5ee7f810149b44dd1f658123c6301dfab | |
| image: debian:latest | |
| imageID: docker-pullable://debian@sha256:d986a531d62903b66e731d475988f5b2ba3a4a90078078cb0f29f9685ee36466 | |
| lastState: {} | |
| name: termination-demo-container | |
| ready: false | |
| restartCount: 0 | |
| state: | |
| terminated: | |
| containerID: docker://ae73503c1cb85e8fe9843cd4e67220e5ee7f810149b44dd1f658123c6301dfab | |
| exitCode: 1 | |
| finishedAt: "2020-02-12T23:20:24Z" | |
| message: | | |
| Sleep expired | |
| reason: Error | |
| startedAt: "2020-02-12T23:20:14Z" | |
| hostIP: 192.168.65.3 | |
| phase: Failed | |
| podIP: 10.1.0.129 | |
| qosClass: BestEffort | |
| startTime: "2020-02-12T23:20:08Z" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment