Created
September 22, 2021 17:17
-
-
Save murillodigital/c96fb943a17a130c91bab8897cfc2079 to your computer and use it in GitHub Desktop.
Sample kubectl output
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"apiVersion": "v1", | |
"items": [ | |
{ | |
"apiVersion": "v1", | |
"kind": "Service", | |
"metadata": { | |
"annotations": { | |
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"v1\",\"kind\":\"Service\",\"metadata\":{\"annotations\":{\"kustomize.toolkit.fluxcd.io/checksum\":\"13334dc728f114d2e08a7287dbf16e9d18bf4d5c\"},\"labels\":{\"app.kubernetes.io/instance\":\"eks-ha\",\"app.kubernetes.io/name\":\"hello-kubernetes\",\"app.kubernetes.io/version\":\"1.10\",\"kustomize.toolkit.fluxcd.io/name\":\"blue-apps\",\"kustomize.toolkit.fluxcd.io/namespace\":\"blue-ns\"},\"name\":\"hello-kubernetes-eks-ha\",\"namespace\":\"blue-ns\"},\"spec\":{\"ports\":[{\"name\":\"http\",\"port\":80,\"protocol\":\"TCP\",\"targetPort\":\"http\"}],\"selector\":{\"app.kubernetes.io/instance\":\"eks-ha\",\"app.kubernetes.io/name\":\"hello-kubernetes\"},\"type\":\"ClusterIP\"}}\n", | |
"kustomize.toolkit.fluxcd.io/checksum": "13334dc728f114d2e08a7287dbf16e9d18bf4d5c" | |
}, | |
"creationTimestamp": "2021-09-22T16:15:48Z", | |
"labels": { | |
"app.kubernetes.io/instance": "eks-ha", | |
"app.kubernetes.io/name": "hello-kubernetes", | |
"app.kubernetes.io/version": "1.10", | |
"kustomize.toolkit.fluxcd.io/name": "blue-apps", | |
"kustomize.toolkit.fluxcd.io/namespace": "blue-ns" | |
}, | |
"name": "hello-kubernetes-eks-ha", | |
"namespace": "blue-ns", | |
"resourceVersion": "2263", | |
"uid": "73a6b5d5-729e-42a1-9a22-34d0b0255c32" | |
}, | |
"spec": { | |
"clusterIP": "10.43.91.12", | |
"clusterIPs": [ | |
"10.43.91.12" | |
], | |
"ipFamilies": [ | |
"IPv4" | |
], | |
"ipFamilyPolicy": "SingleStack", | |
"ports": [ | |
{ | |
"name": "http", | |
"port": 80, | |
"protocol": "TCP", | |
"targetPort": "http" | |
} | |
], | |
"selector": { | |
"app.kubernetes.io/instance": "eks-ha", | |
"app.kubernetes.io/name": "hello-kubernetes" | |
}, | |
"sessionAffinity": "None", | |
"type": "ClusterIP" | |
}, | |
"status": { | |
"loadBalancer": {} | |
} | |
}, | |
{ | |
"apiVersion": "apps/v1", | |
"kind": "Deployment", | |
"metadata": { | |
"annotations": { | |
"deployment.kubernetes.io/revision": "1", | |
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{\"kustomize.toolkit.fluxcd.io/checksum\":\"13334dc728f114d2e08a7287dbf16e9d18bf4d5c\"},\"labels\":{\"app.kubernetes.io/instance\":\"eks-ha\",\"app.kubernetes.io/name\":\"hello-kubernetes\",\"app.kubernetes.io/version\":\"1.10\",\"kustomize.toolkit.fluxcd.io/name\":\"blue-apps\",\"kustomize.toolkit.fluxcd.io/namespace\":\"blue-ns\"},\"name\":\"hello-kubernetes-eks-ha\",\"namespace\":\"blue-ns\"},\"spec\":{\"replicas\":2,\"selector\":{\"matchLabels\":{\"app.kubernetes.io/instance\":\"eks-ha\",\"app.kubernetes.io/name\":\"hello-kubernetes\"}},\"template\":{\"metadata\":{\"labels\":{\"app.kubernetes.io/instance\":\"eks-ha\",\"app.kubernetes.io/name\":\"hello-kubernetes\"}},\"spec\":{\"containers\":[{\"env\":[{\"name\":\"HANDLER_PATH_PREFIX\",\"value\":\"\"},{\"name\":\"RENDER_PATH_PREFIX\",\"value\":\"/team-blue\"},{\"name\":\"KUBERNETES_NAMESPACE\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.namespace\"}}},{\"name\":\"KUBERNETES_POD_NAME\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"metadata.name\"}}},{\"name\":\"KUBERNETES_NODE_NAME\",\"valueFrom\":{\"fieldRef\":{\"fieldPath\":\"spec.nodeName\"}}},{\"name\":\"CONTAINER_IMAGE\",\"value\":\"paulbouwer/hello-kubernetes:1.10\"}],\"image\":\"paulbouwer/hello-kubernetes:1.10\",\"imagePullPolicy\":\"IfNotPresent\",\"livenessProbe\":{\"httpGet\":{\"path\":\"/\",\"port\":\"http\"}},\"name\":\"hello-kubernetes\",\"ports\":[{\"containerPort\":8080,\"name\":\"http\",\"protocol\":\"TCP\"}],\"readinessProbe\":{\"httpGet\":{\"path\":\"/\",\"port\":\"http\"}}}],\"nodeSelector\":{\"kubernetes.io/arch\":\"amd64\",\"kubernetes.io/os\":\"linux\"},\"serviceAccountName\":\"hello-kubernetes-eks-ha\"}}}}\n", | |
"kustomize.toolkit.fluxcd.io/checksum": "13334dc728f114d2e08a7287dbf16e9d18bf4d5c" | |
}, | |
"creationTimestamp": "2021-09-22T16:15:48Z", | |
"generation": 1, | |
"labels": { | |
"app.kubernetes.io/instance": "eks-ha", | |
"app.kubernetes.io/name": "hello-kubernetes", | |
"app.kubernetes.io/version": "1.10", | |
"kustomize.toolkit.fluxcd.io/name": "blue-apps", | |
"kustomize.toolkit.fluxcd.io/namespace": "blue-ns" | |
}, | |
"name": "hello-kubernetes-eks-ha", | |
"namespace": "blue-ns", | |
"resourceVersion": "2411", | |
"uid": "8d1857f3-ac41-48c3-b47f-9b6c8bb8a6c3" | |
}, | |
"spec": { | |
"progressDeadlineSeconds": 600, | |
"replicas": 2, | |
"revisionHistoryLimit": 10, | |
"selector": { | |
"matchLabels": { | |
"app.kubernetes.io/instance": "eks-ha", | |
"app.kubernetes.io/name": "hello-kubernetes" | |
} | |
}, | |
"strategy": { | |
"rollingUpdate": { | |
"maxSurge": "25%", | |
"maxUnavailable": "25%" | |
}, | |
"type": "RollingUpdate" | |
}, | |
"template": { | |
"metadata": { | |
"creationTimestamp": null, | |
"labels": { | |
"app.kubernetes.io/instance": "eks-ha", | |
"app.kubernetes.io/name": "hello-kubernetes" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"env": [ | |
{ | |
"name": "HANDLER_PATH_PREFIX" | |
}, | |
{ | |
"name": "RENDER_PATH_PREFIX", | |
"value": "/team-blue" | |
}, | |
{ | |
"name": "KUBERNETES_NAMESPACE", | |
"valueFrom": { | |
"fieldRef": { | |
"apiVersion": "v1", | |
"fieldPath": "metadata.namespace" | |
} | |
} | |
}, | |
{ | |
"name": "KUBERNETES_POD_NAME", | |
"valueFrom": { | |
"fieldRef": { | |
"apiVersion": "v1", | |
"fieldPath": "metadata.name" | |
} | |
} | |
}, | |
{ | |
"name": "KUBERNETES_NODE_NAME", | |
"valueFrom": { | |
"fieldRef": { | |
"apiVersion": "v1", | |
"fieldPath": "spec.nodeName" | |
} | |
} | |
}, | |
{ | |
"name": "CONTAINER_IMAGE", | |
"value": "paulbouwer/hello-kubernetes:1.10" | |
} | |
], | |
"image": "paulbouwer/hello-kubernetes:1.10", | |
"imagePullPolicy": "IfNotPresent", | |
"livenessProbe": { | |
"failureThreshold": 3, | |
"httpGet": { | |
"path": "/", | |
"port": "http", | |
"scheme": "HTTP" | |
}, | |
"periodSeconds": 10, | |
"successThreshold": 1, | |
"timeoutSeconds": 1 | |
}, | |
"name": "hello-kubernetes", | |
"ports": [ | |
{ | |
"containerPort": 8080, | |
"name": "http", | |
"protocol": "TCP" | |
} | |
], | |
"readinessProbe": { | |
"failureThreshold": 3, | |
"httpGet": { | |
"path": "/", | |
"port": "http", | |
"scheme": "HTTP" | |
}, | |
"periodSeconds": 10, | |
"successThreshold": 1, | |
"timeoutSeconds": 1 | |
}, | |
"resources": {}, | |
"terminationMessagePath": "/dev/termination-log", | |
"terminationMessagePolicy": "File" | |
} | |
], | |
"dnsPolicy": "ClusterFirst", | |
"nodeSelector": { | |
"kubernetes.io/arch": "amd64", | |
"kubernetes.io/os": "linux" | |
}, | |
"restartPolicy": "Always", | |
"schedulerName": "default-scheduler", | |
"securityContext": {}, | |
"serviceAccount": "hello-kubernetes-eks-ha", | |
"serviceAccountName": "hello-kubernetes-eks-ha", | |
"terminationGracePeriodSeconds": 30 | |
} | |
} | |
}, | |
"status": { | |
"availableReplicas": 2, | |
"conditions": [ | |
{ | |
"lastTransitionTime": "2021-09-22T16:15:58Z", | |
"lastUpdateTime": "2021-09-22T16:15:58Z", | |
"message": "Deployment has minimum availability.", | |
"reason": "MinimumReplicasAvailable", | |
"status": "True", | |
"type": "Available" | |
}, | |
{ | |
"lastTransitionTime": "2021-09-22T16:15:48Z", | |
"lastUpdateTime": "2021-09-22T16:15:58Z", | |
"message": "ReplicaSet \"hello-kubernetes-eks-ha-7b6f66c99\" has successfully progressed.", | |
"reason": "NewReplicaSetAvailable", | |
"status": "True", | |
"type": "Progressing" | |
} | |
], | |
"observedGeneration": 1, | |
"readyReplicas": 2, | |
"replicas": 2, | |
"updatedReplicas": 2 | |
} | |
} | |
], | |
"kind": "List", | |
"metadata": { | |
"resourceVersion": "", | |
"selfLink": "" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment