Skip to content

Instantly share code, notes, and snippets.

@bryanl
Created May 30, 2019 11:36
Show Gist options
  • Save bryanl/cc25e776b00673d79cf9f860b2f15009 to your computer and use it in GitHub Desktop.
Save bryanl/cc25e776b00673d79cf9f860b2f15009 to your computer and use it in GitHub Desktop.
{
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Deployment"
}
},
{
"metadata": {
"type": "text"
},
"config": {
"value": "nginx-deployment"
}
}
],
"viewComponents": [
{
"metadata": {
"type": "flexlayout",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Summary"
}
}
],
"accessor": "summary"
},
"config": {
"sections": [
[
{
"width": 12,
"view": {
"metadata": {
"type": "summary",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Configuration"
}
}
]
},
"config": {
"sections": [
{
"header": "Deployment Strategy",
"content": {
"metadata": {
"type": "text"
},
"config": {
"value": "RollingUpdate"
}
}
},
{
"header": "Rolling Update Strategy",
"content": {
"metadata": {
"type": "text"
},
"config": {
"value": "Max Surge 25%, Max Unavailable 25%"
}
}
},
{
"header": "Selectors",
"content": {
"metadata": {
"type": "selectors"
},
"config": {
"selectors": [
{
"metadata": {
"type": "labelSelector"
},
"config": {
"key": "app",
"value": "nginx-deployment"
}
}
]
}
}
},
{
"header": "Min Ready Seconds",
"content": {
"metadata": {
"type": "text"
},
"config": {
"value": "0"
}
}
},
{
"header": "Revision History Limit",
"content": {
"metadata": {
"type": "text"
},
"config": {
"value": "10"
}
}
},
{
"header": "Replicas",
"content": {
"metadata": {
"type": "text"
},
"config": {
"value": "4"
}
}
}
]
}
}
}
],
[
{
"width": 24,
"view": {
"metadata": {
"type": "summary",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Metadata"
}
}
]
},
"config": {
"sections": [
{
"header": "Age",
"content": {
"metadata": {
"type": "timestamp"
},
"config": {
"timestamp": 1558965131
}
}
},
{
"header": "Labels",
"content": {
"metadata": {
"type": "labels"
},
"config": {
"labels": {
"project": "dev-dashboard"
}
}
}
},
{
"header": "Annotations",
"content": {
"metadata": {
"type": "annotations"
},
"config": {
"annotations": {
"deployment.kubernetes.io/revision": "1",
"kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"project\":\"dev-dashboard\"},\"name\":\"nginx-deployment\",\"namespace\":\"default\"},\"spec\":{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app\":\"nginx-deployment\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"nginx-deployment\"}},\"spec\":{\"containers\":[{\"image\":\"nginx:1.13.6\",\"name\":\"nginx\",\"ports\":[{\"containerPort\":80}]}]}}}}\n"
}
}
}
}
]
}
}
}
],
[
{
"width": 24,
"view": {
"metadata": {
"type": "table",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Pods"
}
}
]
},
"config": {
"columns": [
{
"name": "Name",
"accessor": "Name"
},
{
"name": "Ready",
"accessor": "Ready"
},
{
"name": "Phase",
"accessor": "Phase"
},
{
"name": "Restarts",
"accessor": "Restarts"
},
{
"name": "Node",
"accessor": "Node"
},
{
"name": "Age",
"accessor": "Age"
}
],
"rows": [
{
"Age": {
"metadata": {
"type": "timestamp"
},
"config": {
"timestamp": 1559214867
}
},
"Name": {
"metadata": {
"type": "link",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": ""
}
}
]
},
"config": {
"value": "nginx-deployment-54cd97d844-2zggv",
"ref": "/content/overview/namespace/default/workloads/pods/nginx-deployment-54cd97d844-2zggv"
}
},
"Node": {
"metadata": {
"type": "text"
},
"config": {
"value": "dash-control-plane"
}
},
"Phase": {
"metadata": {
"type": "text"
},
"config": {
"value": "Running"
}
},
"Ready": {
"metadata": {
"type": "text"
},
"config": {
"value": "1/1"
}
},
"Restarts": {
"metadata": {
"type": "text"
},
"config": {
"value": "0"
}
}
},
{
"Age": {
"metadata": {
"type": "timestamp"
},
"config": {
"timestamp": 1558965131
}
},
"Name": {
"metadata": {
"type": "link",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": ""
}
}
]
},
"config": {
"value": "nginx-deployment-54cd97d844-f4xnf",
"ref": "/content/overview/namespace/default/workloads/pods/nginx-deployment-54cd97d844-f4xnf"
}
},
"Node": {
"metadata": {
"type": "text"
},
"config": {
"value": "dash-control-plane"
}
},
"Phase": {
"metadata": {
"type": "text"
},
"config": {
"value": "Running"
}
},
"Ready": {
"metadata": {
"type": "text"
},
"config": {
"value": "1/1"
}
},
"Restarts": {
"metadata": {
"type": "text"
},
"config": {
"value": "0"
}
}
},
{
"Age": {
"metadata": {
"type": "timestamp"
},
"config": {
"timestamp": 1558965131
}
},
"Name": {
"metadata": {
"type": "link",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": ""
}
}
]
},
"config": {
"value": "nginx-deployment-54cd97d844-545zz",
"ref": "/content/overview/namespace/default/workloads/pods/nginx-deployment-54cd97d844-545zz"
}
},
"Node": {
"metadata": {
"type": "text"
},
"config": {
"value": "dash-control-plane"
}
},
"Phase": {
"metadata": {
"type": "text"
},
"config": {
"value": "Running"
}
},
"Ready": {
"metadata": {
"type": "text"
},
"config": {
"value": "1/1"
}
},
"Restarts": {
"metadata": {
"type": "text"
},
"config": {
"value": "0"
}
}
},
{
"Age": {
"metadata": {
"type": "timestamp"
},
"config": {
"timestamp": 1559178543
}
},
"Name": {
"metadata": {
"type": "link",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": ""
}
}
]
},
"config": {
"value": "nginx-deployment-54cd97d844-8xvwr",
"ref": "/content/overview/namespace/default/workloads/pods/nginx-deployment-54cd97d844-8xvwr"
}
},
"Node": {
"metadata": {
"type": "text"
},
"config": {
"value": "dash-control-plane"
}
},
"Phase": {
"metadata": {
"type": "text"
},
"config": {
"value": "Running"
}
},
"Ready": {
"metadata": {
"type": "text"
},
"config": {
"value": "1/1"
}
},
"Restarts": {
"metadata": {
"type": "text"
},
"config": {
"value": "0"
}
}
}
],
"emptyContent": ""
}
}
},
{
"width": 6,
"view": {
"metadata": {
"type": "quadrant",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Status"
}
}
]
},
"config": {
"nw": {
"value": "4",
"label": "Updated"
},
"ne": {
"value": "4",
"label": "Total"
},
"se": {
"value": "4",
"label": "Available"
},
"sw": {
"value": "0",
"label": "Unavailable"
}
}
}
}
],
[
{
"width": 24,
"view": {
"metadata": {
"type": "labels",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Pod Template"
}
}
]
},
"config": {
"labels": {
"app": "nginx-deployment"
}
}
}
}
],
[
{
"width": 12,
"view": {
"metadata": {
"type": "summary",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Container nginx"
}
}
]
},
"config": {
"sections": [
{
"header": "Image",
"content": {
"metadata": {
"type": "text"
},
"config": {
"value": "nginx:1.13.6"
}
}
},
{
"header": "Container Ports",
"content": {
"metadata": {
"type": "ports"
},
"config": {
"ports": [
{
"metadata": {
"type": "port"
},
"config": {
"apiVersion": "apps/v1",
"kind": "Deployment",
"port": 80,
"protocol": "TCP",
"state": {}
}
}
]
}
}
}
]
}
}
}
],
[],
[
{
"width": 24,
"view": {
"metadata": {
"type": "table",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Events"
}
}
]
},
"config": {
"columns": [
{
"name": "Message",
"accessor": "Message"
},
{
"name": "Reason",
"accessor": "Reason"
},
{
"name": "Type",
"accessor": "Type"
},
{
"name": "First Seen",
"accessor": "First Seen"
},
{
"name": "Last Seen",
"accessor": "Last Seen"
},
{
"name": "From",
"accessor": "From"
},
{
"name": "Count",
"accessor": "Count"
}
],
"rows": [
{
"Count": {
"metadata": {
"type": "text"
},
"config": {
"value": "1"
}
},
"First Seen": {
"metadata": {
"type": "timestamp"
},
"config": {
"timestamp": 1559214867
}
},
"From": {
"metadata": {
"type": "text"
},
"config": {
"value": "deployment-controller"
}
},
"Last Seen": {
"metadata": {
"type": "timestamp"
},
"config": {
"timestamp": 1559214867
}
},
"Message": {
"metadata": {
"type": "text"
},
"config": {
"value": "Scaled up replica set nginx-deployment-54cd97d844 to 4"
}
},
"Reason": {
"metadata": {
"type": "text"
},
"config": {
"value": "ScalingReplicaSet"
}
},
"Type": {
"metadata": {
"type": "text"
},
"config": {
"value": "Normal"
}
}
}
],
"emptyContent": ""
}
}
}
]
]
}
},
{
"metadata": {
"type": "resourceViewer",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Resource Viewer"
}
}
],
"accessor": "resourceViewer"
},
"config": {
"edges": {
"a084690a-8086-11e9-9c8f-0242ac110002": [
{
"node": "pods-a086fcdd-8086-11e9-9c8f-0242ac110002",
"edge": "explicit"
}
],
"a0864f32-8086-11e9-9c8f-0242ac110002": [
{
"node": "a086fcdd-8086-11e9-9c8f-0242ac110002",
"edge": "explicit"
}
],
"a086fcdd-8086-11e9-9c8f-0242ac110002": [
{
"node": "pods-a086fcdd-8086-11e9-9c8f-0242ac110002",
"edge": "explicit"
}
]
},
"nodes": {
"a084690a-8086-11e9-9c8f-0242ac110002": {
"name": "nginx-deployment",
"apiVersion": "v1",
"kind": "Service",
"status": "ok",
"details": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Service is OK"
}
}
],
"path": {
"metadata": {
"type": "link",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": ""
}
}
]
},
"config": {
"value": "nginx-deployment",
"ref": "/content/overview/namespace/default/discovery-and-load-balancing/services/nginx-deployment"
}
}
},
"a0864f32-8086-11e9-9c8f-0242ac110002": {
"name": "nginx-deployment",
"apiVersion": "apps/v1",
"kind": "Deployment",
"status": "ok",
"details": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Deployment is OK"
}
}
],
"path": {
"metadata": {
"type": "link",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": ""
}
}
]
},
"config": {
"value": "nginx-deployment",
"ref": "/content/overview/namespace/default/workloads/deployments/nginx-deployment"
}
}
},
"a086fcdd-8086-11e9-9c8f-0242ac110002": {
"name": "nginx-deployment-54cd97d844",
"apiVersion": "apps/v1",
"kind": "ReplicaSet",
"status": "ok",
"details": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "Replica Set is OK"
}
}
],
"path": {
"metadata": {
"type": "link",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": ""
}
}
]
},
"config": {
"value": "nginx-deployment-54cd97d844",
"ref": "/content/overview/namespace/default/workloads/replica-sets/nginx-deployment-54cd97d844"
}
}
},
"pods-a086fcdd-8086-11e9-9c8f-0242ac110002": {
"name": "nginx-deployment-54cd97d844 pods",
"apiVersion": "v1",
"kind": "Pod",
"status": "ok",
"details": [
{
"metadata": {
"type": "podStatus"
},
"config": {
"pods": {
"nginx-deployment-54cd97d844-545zz": {
"details": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "v1 Pod is OK"
}
}
],
"status": "ok"
},
"nginx-deployment-54cd97d844-8xvwr": {
"details": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "v1 Pod is OK"
}
}
],
"status": "ok"
},
"nginx-deployment-54cd97d844-f4xnf": {
"details": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "v1 Pod is OK"
}
}
],
"status": "ok"
}
}
}
},
{
"metadata": {
"type": "text"
},
"config": {
"value": "Pod count: 3"
}
}
]
}
},
"selected": "a0864f32-8086-11e9-9c8f-0242ac110002"
}
},
{
"metadata": {
"type": "yaml",
"title": [
{
"metadata": {
"type": "text"
},
"config": {
"value": "YAML"
}
}
],
"accessor": "yaml"
},
"config": {
"data": "---\napiVersion: apps/v1\nkind: Deployment\nmetadata:\n annotations:\n deployment.kubernetes.io/revision: \"1\"\n kubectl.kubernetes.io/last-applied-configuration: |\n {\"apiVersion\":\"apps/v1\",\"kind\":\"Deployment\",\"metadata\":{\"annotations\":{},\"labels\":{\"project\":\"dev-dashboard\"},\"name\":\"nginx-deployment\",\"namespace\":\"default\"},\"spec\":{\"replicas\":3,\"selector\":{\"matchLabels\":{\"app\":\"nginx-deployment\"}},\"template\":{\"metadata\":{\"labels\":{\"app\":\"nginx-deployment\"}},\"spec\":{\"containers\":[{\"image\":\"nginx:1.13.6\",\"name\":\"nginx\",\"ports\":[{\"containerPort\":80}]}]}}}}\n creationTimestamp: \"2019-05-27T13:52:11Z\"\n generation: 7\n labels:\n project: dev-dashboard\n name: nginx-deployment\n namespace: default\n resourceVersion: \"305590\"\n selfLink: /apis/apps/v1/namespaces/default/deployments/nginx-deployment\n uid: a0864f32-8086-11e9-9c8f-0242ac110002\nspec:\n progressDeadlineSeconds: 600\n replicas: 4\n revisionHistoryLimit: 10\n selector:\n matchLabels:\n app: nginx-deployment\n strategy:\n rollingUpdate:\n maxSurge: 25%\n maxUnavailable: 25%\n type: RollingUpdate\n template:\n metadata:\n creationTimestamp: null\n labels:\n app: nginx-deployment\n spec:\n containers:\n - image: nginx:1.13.6\n imagePullPolicy: IfNotPresent\n name: nginx\n ports:\n - containerPort: 80\n protocol: TCP\n resources: {}\n terminationMessagePath: /dev/termination-log\n terminationMessagePolicy: File\n dnsPolicy: ClusterFirst\n restartPolicy: Always\n schedulerName: default-scheduler\n securityContext: {}\n terminationGracePeriodSeconds: 30\nstatus:\n availableReplicas: 4\n conditions:\n - lastTransitionTime: \"2019-05-27T13:52:11Z\"\n lastUpdateTime: \"2019-05-27T13:52:17Z\"\n message: ReplicaSet \"nginx-deployment-54cd97d844\" has successfully progressed.\n reason: NewReplicaSetAvailable\n status: \"True\"\n type: Progressing\n - lastTransitionTime: \"2019-05-30T01:09:05Z\"\n lastUpdateTime: \"2019-05-30T01:09:05Z\"\n message: Deployment has minimum availability.\n reason: MinimumReplicasAvailable\n status: \"True\"\n type: Available\n observedGeneration: 7\n readyReplicas: 4\n replicas: 4\n updatedReplicas: 4\n"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment