Skip to content

Instantly share code, notes, and snippets.

@jmrodri
Created February 2, 2021 15:58
Show Gist options
  • Save jmrodri/86d7a07862ec81e9e16b504a7710b86f to your computer and use it in GitHub Desktop.
Save jmrodri/86d7a07862ec81e9e16b504a7710b86f to your computer and use it in GitHub Desktop.
--- good-pod.yaml 2021-02-01 21:12:00.924808013 -0500
+++ bad-pod.yaml 2021-02-01 21:13:34.065354226 -0500
@@ -1,48 +1,13 @@
apiVersion: v1
kind: Pod
metadata:
- creationTimestamp: 2021-02-02T02:11:11Z
+ creationTimestamp: 2021-02-02T02:12:26Z
labels:
app: test-pod-1
managedFields:
- apiVersion: v1
fieldsType: FieldsV1
fieldsV1:
- f:metadata:
- f:labels:
- .: {}
- f:app: {}
- f:ownerReferences:
- .: {}
- k:{"uid":"9d8b9665-2ea6-4ab8-b49b-0a13538742ed"}:
- .: {}
- f:apiVersion: {}
- f:kind: {}
- f:name: {}
- f:uid: {}
- f:spec:
- f:containers:
- k:{"name":"test-pod-1"}:
- .: {}
- f:command: {}
- f:image: {}
- f:imagePullPolicy: {}
- f:name: {}
- f:resources: {}
- f:terminationMessagePath: {}
- f:terminationMessagePolicy: {}
- f:dnsPolicy: {}
- f:enableServiceLinks: {}
- f:restartPolicy: {}
- f:schedulerName: {}
- f:securityContext: {}
- f:terminationGracePeriodSeconds: {}
- manager: Swagger-Codegen
- operation: Update
- time: 2021-02-02T02:11:11Z
- - apiVersion: v1
- fieldsType: FieldsV1
- fieldsV1:
f:status:
f:conditions:
k:{"type":"ContainersReady"}:
@@ -72,23 +37,59 @@
f:podIP: {}
f:podIPs:
.: {}
- k:{"ip":"10.244.0.13"}:
+ k:{"ip":"10.244.0.14"}:
.: {}
f:ip: {}
f:startTime: {}
manager: kubelet
operation: Update
- time: 2021-02-02T02:11:52Z
+ time: 2021-02-02T02:13:24Z
+ - apiVersion: v1
+ fieldsType: FieldsV1
+ fieldsV1:
+ f:metadata:
+ f:labels:
+ .: {}
+ f:app: {}
+ f:ownerReferences:
+ .: {}
+ k:{"uid":"d081a45a-2adf-4047-8255-1f8953ebeaf0"}:
+ .: {}
+ f:apiVersion: {}
+ f:kind: {}
+ f:name: {}
+ f:uid: {}
+ f:spec:
+ f:containers:
+ k:{"name":"test-pod-1"}:
+ .: {}
+ f:command: {}
+ f:image: {}
+ f:imagePullPolicy: {}
+ f:name: {}
+ f:resources: {}
+ f:terminationMessagePath: {}
+ f:terminationMessagePolicy: {}
+ f:dnsPolicy: {}
+ f:enableServiceLinks: {}
+ f:restartPolicy: {}
+ f:schedulerName: {}
+ f:securityContext: {}
+ f:terminationGracePeriodSeconds: {}
+ f:tolerations: {}
+ manager: Swagger-Codegen
+ operation: Update
+ time: 2021-02-02T02:13:33Z
name: test-pod-1
namespace: default
ownerReferences:
- apiVersion: mlops.cnvrg.io/v1
kind: InfiniteLoop
- name: good
- uid: 9d8b9665-2ea6-4ab8-b49b-0a13538742ed
- resourceVersion: "32224"
+ name: bad
+ uid: d081a45a-2adf-4047-8255-1f8953ebeaf0
+ resourceVersion: "32653"
selfLink: /api/v1/namespaces/default/pods/test-pod-1
- uid: dc056880-6507-428b-828e-152ccc9af68f
+ uid: 6ad188cf-1a34-4026-a8b5-8274f4268371
spec:
containers:
- command:
@@ -117,6 +118,10 @@
serviceAccountName: default
terminationGracePeriodSeconds: 30
tolerations:
+ - effect: NoSchedule
+ key: foo
+ operator: Equal
+ value: bar
- effect: NoExecute
key: node.kubernetes.io/not-ready
operator: Exists
@@ -133,23 +138,23 @@
status:
conditions:
- lastProbeTime: null
- lastTransitionTime: 2021-02-02T02:11:11Z
+ lastTransitionTime: 2021-02-02T02:12:26Z
status: "True"
type: Initialized
- lastProbeTime: null
- lastTransitionTime: 2021-02-02T02:11:11Z
+ lastTransitionTime: 2021-02-02T02:12:26Z
message: 'containers with unready status: [test-pod-1]'
reason: ContainersNotReady
status: "False"
type: Ready
- lastProbeTime: null
- lastTransitionTime: 2021-02-02T02:11:11Z
+ lastTransitionTime: 2021-02-02T02:12:26Z
message: 'containers with unready status: [test-pod-1]'
reason: ContainersNotReady
status: "False"
type: ContainersReady
- lastProbeTime: null
- lastTransitionTime: 2021-02-02T02:11:11Z
+ lastTransitionTime: 2021-02-02T02:12:26Z
status: "True"
type: PodScheduled
containerStatuses:
@@ -165,13 +170,13 @@
message: 'rpc error: code = Unknown desc = failed to pull and unpack image
"docker.io/library/ubuntu:18.04": failed to resolve reference "docker.io/library/ubuntu:18.04":
failed to do request: Head https://registry-1.docker.io/v2/library/ubuntu/manifests/18.04:
- dial tcp: lookup registry-1.docker.io on 172.18.0.1:53: read udp 172.18.0.2:41572->172.18.0.1:53:
+ dial tcp: lookup registry-1.docker.io on 172.18.0.1:53: read udp 172.18.0.2:57957->172.18.0.1:53:
i/o timeout'
reason: ErrImagePull
hostIP: 172.18.0.2
phase: Pending
- podIP: 10.244.0.13
+ podIP: 10.244.0.14
podIPs:
- - ip: 10.244.0.13
+ - ip: 10.244.0.14
qosClass: BestEffort
- startTime: 2021-02-02T02:11:11Z
+ startTime: 2021-02-02T02:12:26Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment