Debian Codegraph @

pkg/endpoints/handlers/responsewriters/testdata/pod.json

raw
1 {
2 "apiVersion": "v1",
3 "kind": "Pod",
4 "metadata": {
5 "creationTimestamp": "2021-02-18T09:46:18Z",
6 "generateName": "nginx-deployment-7b88ccfd76-",
7 "labels": {
8 "app": "nginx",
9 "pod-template-hash": "7b88ccfd76"
10 },
11 "managedFields": [
12 {
13 "apiVersion": "v1",
14 "fieldsType": "FieldsV1",
15 "fieldsV1": {"f:metadata":{"f:generateName":{},"f:labels":{".":{},"f:app":{},"f:pod-template-hash":{}},"f:ownerReferences":{".":{},"k:{\"uid\":\"c9f927f9-8f7a-43c4-a100-b4bdf306dd93\"}":{".":{},"f:apiVersion":{},"f:blockOwnerDeletion":{},"f:controller":{},"f:kind":{},"f:name":{},"f:uid":{}}}},"f:spec":{"f:containers":{"k:{\"name\":\"nginx\"}":{".":{},"f:image":{},"f:imagePullPolicy":{},"f:name":{},"f:ports":{".":{},"k:{\"containerPort\":80,\"protocol\":\"TCP\"}":{".":{},"f:containerPort":{},"f:protocol":{}}},"f:resources":{".":{},"f:requests":{".":{},"f:cpu":{}}},"f:terminationMessagePath":{},"f:terminationMessagePolicy":{}}},"f:dnsPolicy":{},"f:enableServiceLinks":{},"f:restartPolicy":{},"f:schedulerName":{},"f:securityContext":{},"f:terminationGracePeriodSeconds":{}}},
16 "manager": "kube-controller-manager",
17 "operation": "Update",
18 "time": "2021-02-18T09:46:18Z"
19 },
20 {
21 "apiVersion": "v1",
22 "fieldsType": "FieldsV1",
23 "fieldsV1": {"f:status":{"f:conditions":{"k:{\"type\":\"ContainersReady\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Initialized\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:status":{},"f:type":{}},"k:{\"type\":\"Ready\"}":{".":{},"f:lastProbeTime":{},"f:lastTransitionTime":{},"f:status":{},"f:type":{}}},"f:containerStatuses":{},"f:hostIP":{},"f:phase":{},"f:podIP":{},"f:podIPs":{".":{},"k:{\"ip\":\"10.224.98.9\"}":{".":{},"f:ip":{}}},"f:startTime":{}}},
24 "manager": "kubelet",
25 "operation": "Update",
26 "time": "2021-02-18T09:46:19Z"
27 }
28 ],
29 "name": "nginx-deployment-7b88ccfd76-24jf7",
30 "namespace": "default",
31 "ownerReferences": [
32 {
33 "apiVersion": "apps/v1",
34 "blockOwnerDeletion": true,
35 "controller": true,
36 "kind": "ReplicaSet",
37 "name": "nginx-deployment-7b88ccfd76",
38 "uid": "c9f927f9-8f7a-43c4-a100-b4bdf306dd93"
39 }
40 ],
41 "resourceVersion": "10345330",
42 "uid": "3be4f64b-3687-47ff-9910-b72366ea798e"
43 },
44 "spec": {
45 "containers": [
46 {
47 "image": "nginx:1.14.2",
48 "imagePullPolicy": "IfNotPresent",
49 "name": "nginx",
50 "ports": [
51 {
52 "containerPort": 80,
53 "protocol": "TCP"
54 }
55 ],
56 "resources": {
57 "requests": {
58 "cpu": "1m"
59 }
60 },
61 "terminationMessagePath": "/dev/termination-log",
62 "terminationMessagePolicy": "File",
63 "volumeMounts": [
64 {
65 "mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
66 "name": "default-token-hz58m",
67 "readOnly": true
68 }
69 ]
70 }
71 ],
72 "dnsPolicy": "ClusterFirst",
73 "enableServiceLinks": true,
74 "nodeName": "gke-pf-default-pool-ad46e28b-kdh9",
75 "preemptionPolicy": "PreemptLowerPriority",
76 "priority": 0,
77 "restartPolicy": "Always",
78 "schedulerName": "default-scheduler",
79 "securityContext": {},
80 "serviceAccount": "default",
81 "serviceAccountName": "default",
82 "terminationGracePeriodSeconds": 30,
83 "tolerations": [
84 {
85 "effect": "NoExecute",
86 "key": "node.kubernetes.io/not-ready",
87 "operator": "Exists",
88 "tolerationSeconds": 300
89 },
90 {
91 "effect": "NoExecute",
92 "key": "node.kubernetes.io/unreachable",
93 "operator": "Exists",
94 "tolerationSeconds": 300
95 }
96 ],
97 "volumes": [
98 {
99 "name": "default-token-hz58m",
100 "secret": {
101 "defaultMode": 420,
102 "secretName": "default-token-hz58m"
103 }
104 }
105 ]
106 },
107 "status": {
108 "conditions": [
109 {
110 "lastProbeTime": null,
111 "lastTransitionTime": "2021-02-18T09:46:18Z",
112 "status": "True",
113 "type": "Initialized"
114 },
115 {
116 "lastProbeTime": null,
117 "lastTransitionTime": "2021-02-18T09:46:19Z",
118 "status": "True",
119 "type": "Ready"
120 },
121 {
122 "lastProbeTime": null,
123 "lastTransitionTime": "2021-02-18T09:46:19Z",
124 "status": "True",
125 "type": "ContainersReady"
126 },
127 {
128 "lastProbeTime": null,
129 "lastTransitionTime": "2021-02-18T09:46:18Z",
130 "status": "True",
131 "type": "PodScheduled"
132 }
133 ],
134 "containerStatuses": [
135 {
136 "containerID": "docker://cea8a81981cd4780fd0b705049a533ca9d83c4596b9f7f4e67915863a2ca76a2",
137 "image": "nginx:1.14.2",
138 "imageID": "docker-pullable://nginx@sha256:f7988fb6c02e0ce69257d9bd9cf37ae20a60f1df7563c3a2a6abe24160306b8d",
139 "lastState": {},
140 "name": "nginx",
141 "ready": true,
142 "restartCount": 0,
143 "started": true,
144 "state": {
145 "running": {
146 "startedAt": "2021-02-18T09:46:19Z"
147 }
148 }
149 }
150 ],
151 "hostIP": "10.223.96.100",
152 "phase": "Running",
153 "podIP": "10.224.98.9",
154 "podIPs": [
155 {
156 "ip": "10.224.98.9"
157 }
158 ],
159 "qosClass": "Burstable",
160 "startTime": "2021-02-18T09:46:18Z"
161 }
162 }