# Fetch the deployment using kubectl as json ->% kubectl get deployment xx-homepage -ojson { "apiVersion": "extensions/v1beta1", "kind": "Deployment", "metadata": { "annotations": { "deployment.kubernetes.io/revision": "1" }, "creationTimestamp": "2018-06-01T10:03:33Z", "generation": 19, "labels": { "app": "homepage", "chart": "homepage-0.1.0", "heritage": "Tiller", "release": "xx" }, "name": "xx-homepage", "namespace": "default", "resourceVersion": "5262225", "selfLink": "/apis/extensions/v1beta1/namespaces/default/deployments/xx-homepage", "uid": "0b35c76a-6583-11e8-9845-42010a9c0054" }, "spec": { "progressDeadlineSeconds": 600, "replicas": 3, "revisionHistoryLimit": 10, "selector": { "matchLabels": { "app": "homepage", "release": "xx" } }, "strategy": { "rollingUpdate": { "maxSurge": "25%", "maxUnavailable": "25%" }, "type": "RollingUpdate" }, "template": { "metadata": { "creationTimestamp": null, "labels": { "app": "homepage", "release": "xx" } }, "spec": { "affinity": { "podAntiAffinity": { "preferredDuringSchedulingIgnoredDuringExecution": [ { "podAffinityTerm": { "labelSelector": { "matchExpressions": [ { "key": "app", "operator": "In", "values": [ "homepage" ] } ] }, "topologyKey": "kubernetes.io/hostname" }, "weight": 100 } ] } }, "containers": [ { "image": "ipedrazas/multicluster:v0.4", "imagePullPolicy": "Always", "livenessProbe": { "failureThreshold": 3, "httpGet": { "path": "/", "port": "http", "scheme": "HTTP" }, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 1 }, "name": "homepage", "ports": [ { "containerPort": 3000, "name": "http", "protocol": "TCP" } ], "readinessProbe": { "failureThreshold": 3, "httpGet": { "path": "/", "port": "http", "scheme": "HTTP" }, "periodSeconds": 10, "successThreshold": 1, "timeoutSeconds": 1 }, "resources": { "limits": { "cpu": "240m", "memory": "256Mi" }, "requests": { "cpu": "120m", "memory": "128Mi" } }, "terminationMessagePath": "/dev/termination-log", "terminationMessagePolicy": "File", "volumeMounts": [ { "mountPath": "/etc/nginx/conf.d", "name": "config-nginx" } ] } ], "dnsPolicy": "ClusterFirst", "restartPolicy": "Always", "schedulerName": "default-scheduler", "securityContext": {}, "terminationGracePeriodSeconds": 30, "volumes": [ { "configMap": { "defaultMode": 420, "items": [ { "key": "nginx.conf", "path": "default.conf" } ], "name": "xx-homepage" }, "name": "config-nginx" } ] } } }, "status": { "availableReplicas": 3, "conditions": [ { "lastTransitionTime": "2018-06-01T10:03:33Z", "lastUpdateTime": "2018-06-01T10:04:09Z", "message": "ReplicaSet \"xx-homepage-558f6f4f84\" has successfully progressed.", "reason": "NewReplicaSetAvailable", "status": "True", "type": "Progressing" }, { "lastTransitionTime": "2018-06-25T09:42:34Z", "lastUpdateTime": "2018-06-25T09:42:34Z", "message": "Deployment has minimum availability.", "reason": "MinimumReplicasAvailable", "status": "True", "type": "Available" } ], "observedGeneration": 19, "readyReplicas": 3, "replicas": 3, "updatedReplicas": 3 } }