119 lines
4.7 KiB
JSON
119 lines
4.7 KiB
JSON
{
|
|
"apiVersion": "apps/v1",
|
|
"kind": "Deployment",
|
|
"metadata": {
|
|
"annotations": {
|
|
"deployment.kubernetes.io/revision": "3",
|
|
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"app\":\"nginx\"},\"name\":\"nginx\",\"namespace\":\"default\"},\"spec\":{\"replicas\":1,\"selector\":{\"matchLabels\":{\"app\":\"nginx\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"nginx\"}},\"spec\":{\"containers\":[{\"env\":[{\"name\":\"FRED\",\"valueFrom\":{\"configMapKeyRef\":{\"key\":\"fred\",\"name\":\"busy\"}}},{\"name\":\"PROPS\",\"valueFrom\":{\"configMapKeyRef\":{\"key\":\"props\",\"name\":\"busy\"}}}],\"image\":\"k8s.gcr.io/nginx-slim:0.8\",\"name\":\"nginx\",\"ports\":[{\"containerPort\":80}],\"resources\":{\"limits\":{\"cpu\":\"100m\",\"memory\":\"200Mi\"}}}]}}}}\n"
|
|
},
|
|
"creationTimestamp": "2020-01-16T04:18:04Z",
|
|
"generation": 4,
|
|
"labels": {
|
|
"app": "nginx"
|
|
},
|
|
"name": "nginx",
|
|
"namespace": "default",
|
|
"resourceVersion": "3338230",
|
|
"selfLink": "/apis/apps/v1/namespaces/default/deployments/nginx",
|
|
"uid": "a2baf77e-5301-4efd-ac40-ff3da9716c80"
|
|
},
|
|
"spec": {
|
|
"progressDeadlineSeconds": 600,
|
|
"replicas": 1,
|
|
"revisionHistoryLimit": 10,
|
|
"selector": {
|
|
"matchLabels": {
|
|
"app": "nginx"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"rollingUpdate": {
|
|
"maxSurge": "25%",
|
|
"maxUnavailable": "25%"
|
|
},
|
|
"type": "RollingUpdate"
|
|
},
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"app": "nginx"
|
|
}
|
|
},
|
|
"spec": {
|
|
"containers": [
|
|
{
|
|
"env": [
|
|
{
|
|
"name": "FRED",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"key": "fred",
|
|
"name": "busy"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "PROPS",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"key": "props",
|
|
"name": "busy"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"image": "k8s.gcr.io/nginx-slim:0.8",
|
|
"imagePullPolicy": "IfNotPresent",
|
|
"name": "nginx",
|
|
"ports": [
|
|
{
|
|
"containerPort": 80,
|
|
"protocol": "TCP"
|
|
}
|
|
],
|
|
"resources": {
|
|
"limits": {
|
|
"cpu": "100m",
|
|
"memory": "200Mi"
|
|
}
|
|
},
|
|
"terminationMessagePath": "/dev/termination-log",
|
|
"terminationMessagePolicy": "File"
|
|
}
|
|
],
|
|
"dnsPolicy": "ClusterFirst",
|
|
"restartPolicy": "Always",
|
|
"schedulerName": "default-scheduler",
|
|
"securityContext": {},
|
|
"terminationGracePeriodSeconds": 30
|
|
}
|
|
}
|
|
},
|
|
"status": {
|
|
"availableReplicas": 1,
|
|
"conditions": [
|
|
{
|
|
"lastTransitionTime": "2020-01-16T14:52:45Z",
|
|
"lastUpdateTime": "2020-01-16T14:52:45Z",
|
|
"message": "Deployment has minimum availability.",
|
|
"reason": "MinimumReplicasAvailable",
|
|
"status": "True",
|
|
"type": "Available"
|
|
},
|
|
{
|
|
"lastTransitionTime": "2020-01-18T01:20:50Z",
|
|
"lastUpdateTime": "2020-01-18T01:20:50Z",
|
|
"message": "ReplicaSet \"nginx-5bbc876d89\" has successfully progressed.",
|
|
"reason": "NewReplicaSetAvailable",
|
|
"status": "True",
|
|
"type": "Progressing"
|
|
}
|
|
],
|
|
"observedGeneration": 4,
|
|
"readyReplicas": 1,
|
|
"replicas": 1,
|
|
"updatedReplicas": 1
|
|
}
|
|
}
|