-
-
Save ChrisPenner/53e4b505ff0673b39c60e6c926b2715d to your computer and use it in GitHub Desktop.
Kubernetes API Pod JSON
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
{ | |
"kind": "List", | |
"apiVersion": "v1", | |
"items": [ | |
{ | |
"kind": "Pod", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "redis-h315w", | |
"creationTimestamp": "2019-03-23T19:42:21Z", | |
"labels": { | |
"name": "redis", | |
"region": "usa" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"name": "redis", | |
"image": "redis", | |
"ports": [ | |
{ | |
"name": "redis", | |
"hostPort": 27017, | |
"containerPort": 27017, | |
"protocol": "TCP" | |
} | |
], | |
"resources": { | |
"requests": { | |
"cpu": "100m" | |
} | |
} | |
} | |
] | |
} | |
}, | |
{ | |
"kind": "Pod", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "web-4c5bj", | |
"creationTimestamp": "2019-02-24T20:23:56Z", | |
"labels": { | |
"name": "web", | |
"region": "usa" | |
} | |
}, | |
"spec": { | |
"containers": [ | |
{ | |
"name": "web", | |
"image": "server", | |
"ports": [ | |
{ | |
"name": "http-server", | |
"containerPort": 3000, | |
"protocol": "TCP" | |
} | |
], | |
"resources": { | |
"requests": { | |
"cpu": "100m" | |
} | |
} | |
} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment