Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
385 lines (383 sloc) 14.2 KB
// failed deployment
{
"apiVersion": "extensions/v1beta1",
"kind": "Deployment",
"metadata": {
"annotations": {
"deployment.kubernetes.io/revision": "6"
},
"creationTimestamp": "2019-09-19T11:38:55Z",
"generation": 6,
"labels": {
"app": "nginx",
"deploy_time": "1568894613"
},
"name": "nginx",
"namespace": "default",
"resourceVersion": "154639",
"selfLink": "/apis/extensions/v1beta1/namespaces/default/deployments/nginx",
"uid": "8150b019-d66f-40c5-b3b2-892a0be00ac8"
},
"spec": {
"progressDeadlineSeconds": 600,
"replicas": 2,
"revisionHistoryLimit": 2,
"selector": {
"matchLabels": {
"app": "nginx"
}
},
"strategy": {
"rollingUpdate": {
"maxSurge": "25%",
"maxUnavailable": "25%"
},
"type": "RollingUpdate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"app": "nginx",
"deploy_time": "1568894613"
}
},
"spec": {
"containers": [
{
"image": "nginx:100.7.9",
"imagePullPolicy": "IfNotPresent",
"name": "nginx",
"ports": [
{
"containerPort": 80,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File"
}
],
"dnsPolicy": "ClusterFirst",
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"terminationGracePeriodSeconds": 30
}
}
},
"status": {
"conditions": [
{
"lastTransitionTime": "2019-09-19T11:38:55Z",
"lastUpdateTime": "2019-09-19T11:38:55Z",
"message": "Deployment does not have minimum availability.",
"reason": "MinimumReplicasUnavailable",
"status": "False",
"type": "Available"
},
{
"lastTransitionTime": "2019-09-19T12:13:34Z",
"lastUpdateTime": "2019-09-19T12:13:34Z",
"message": "ReplicaSet \"nginx-79f5696d47\" has timed out progressing.",
"reason": "ProgressDeadlineExceeded",
"status": "False",
"type": "Progressing"
}
],
"observedGeneration": 6,
"replicas": 3,
"unavailableReplicas": 3,
"updatedReplicas": 1
}
}
// failed pods
{
"apiVersion": "v1",
"items": [
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"creationTimestamp": "2019-09-19T11:44:49Z",
"generateName": "nginx-786d99b65c-",
"labels": {
"app": "nginx",
"deploy_time": "1568893489",
"pod-template-hash": "786d99b65c"
},
"name": "nginx-786d99b65c-c22lf",
"namespace": "default",
"ownerReferences": [
{
"apiVersion": "apps/v1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "ReplicaSet",
"name": "nginx-786d99b65c",
"uid": "8957b87e-c417-492b-9ade-69ce1ff322d6"
}
],
"resourceVersion": "158713",
"selfLink": "/api/v1/namespaces/default/pods/nginx-786d99b65c-c22lf",
"uid": "8cf5d1d9-a3f5-46e1-872f-96944a1d1ab0"
},
"spec": {
"containers": [
{
"image": "nginx:100.7.9",
"imagePullPolicy": "IfNotPresent",
"name": "nginx",
"ports": [
{
"containerPort": 80,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "default-token-wgzmw",
"readOnly": true
}
]
}
],
"dnsPolicy": "ClusterFirst",
"enableServiceLinks": true,
"nodeName": "minikube",
"priority": 0,
"restartPolicy": "Always",
"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-wgzmw",
"secret": {
"defaultMode": 420,
"secretName": "default-token-wgzmw"
}
}
]
},
"status": {
"conditions": [
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T11:44:49Z",
"status": "True",
"type": "Initialized"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T11:44:49Z",
"message": "containers with unready status: [nginx]",
"reason": "ContainersNotReady",
"status": "False",
"type": "Ready"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T11:44:49Z",
"message": "containers with unready status: [nginx]",
"reason": "ContainersNotReady",
"status": "False",
"type": "ContainersReady"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T11:44:49Z",
"status": "True",
"type": "PodScheduled"
}
],
"containerStatuses": [
{
"image": "nginx:100.7.9",
"imageID": "",
"lastState": {},
"name": "nginx",
"ready": false,
"restartCount": 0,
"state": {
"waiting": {
"message": "Back-off pulling image \"nginx:100.7.9\"",
"reason": "ImagePullBackOff"
}
}
}
],
"hostIP": "10.0.2.15",
"phase": "Pending",
"podIP": "172.17.0.8",
"qosClass": "BestEffort",
"startTime": "2019-09-19T11:44:49Z"
}
},
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"creationTimestamp": "2019-09-19T12:03:33Z",
"generateName": "nginx-79f5696d47-",
"labels": {
"app": "nginx",
"deploy_time": "1568894613",
"pod-template-hash": "79f5696d47"
},
"name": "nginx-79f5696d47-fbbms",
"namespace": "default",
"ownerReferences": [
{
"apiVersion": "apps/v1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "ReplicaSet",
"name": "nginx-79f5696d47",
"uid": "06814eb3-5398-4b92-8622-520ed1584a1d"
}
],
"resourceVersion": "158594",
"selfLink": "/api/v1/namespaces/default/pods/nginx-79f5696d47-fbbms",
"uid": "41580e57-d51b-4faf-b5be-78bf15bae39b"
},
"spec": {
"containers": [
{
"image": "nginx:100.7.9",
"imagePullPolicy": "IfNotPresent",
"name": "nginx",
"ports": [
{
"containerPort": 80,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "default-token-wgzmw",
"readOnly": true
}
]
}
],
"dnsPolicy": "ClusterFirst",
"enableServiceLinks": true,
"nodeName": "minikube",
"priority": 0,
"restartPolicy": "Always",
"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-wgzmw",
"secret": {
"defaultMode": 420,
"secretName": "default-token-wgzmw"
}
}
]
},
"status": {
"conditions": [
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T12:03:33Z",
"status": "True",
"type": "Initialized"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T12:03:33Z",
"message": "containers with unready status: [nginx]",
"reason": "ContainersNotReady",
"status": "False",
"type": "Ready"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T12:03:33Z",
"message": "containers with unready status: [nginx]",
"reason": "ContainersNotReady",
"status": "False",
"type": "ContainersReady"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-09-19T12:03:33Z",
"status": "True",
"type": "PodScheduled"
}
],
"containerStatuses": [
{
"image": "nginx:100.7.9",
"imageID": "",
"lastState": {},
"name": "nginx",
"ready": false,
"restartCount": 0,
"state": {
"waiting": {
"message": "Back-off pulling image \"nginx:100.7.9\"",
"reason": "ImagePullBackOff"
}
}
}
],
"hostIP": "10.0.2.15",
"phase": "Pending",
"podIP": "172.17.0.9",
"qosClass": "BestEffort",
"startTime": "2019-09-19T12:03:33Z"
}
}
],
"kind": "List",
"metadata": {
"resourceVersion": "",
"selfLink": ""
}
}
You can’t perform that action at this time.