Skip to content

Instantly share code, notes, and snippets.

@ChrisPenner

ChrisPenner/kube.json Secret

Created Dec 17, 2019
Embed
What would you like to do?
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
You can’t perform that action at this time.