Skip to content

Instantly share code, notes, and snippets.

@ChrisPenner
Created December 17, 2019 19:01
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ChrisPenner/53e4b505ff0673b39c60e6c926b2715d to your computer and use it in GitHub Desktop.
Save ChrisPenner/53e4b505ff0673b39c60e6c926b2715d to your computer and use it in GitHub Desktop.
Kubernetes API Pod JSON
{
"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