Skip to content

Instantly share code, notes, and snippets.

@markllama
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markllama/b7a770b9e0e1e2af938b to your computer and use it in GitHub Desktop.
Save markllama/b7a770b9e0e1e2af938b to your computer and use it in GitHub Desktop.
A reply to a query for the status of a Kubernetes Pod
{
"kind": "Pod",
"id": "pulpdb",
"uid": "4bac8381-8537-11e4-a18b-0800279696e1",
"creationTimestamp": "2014-12-16T15:22:06Z",
"selfLink": "/api/v1beta1/pods/pulpdb?namespace=default",
"resourceVersion": 22,
"apiVersion": "v1beta1",
"namespace": "default",
"labels": {
"name": "db"
},
"desiredState": {
"manifest": {
"version": "v1beta2",
"id": "",
"volumes": [
{
"name": "devlog",
"source": {
"hostDir": {
"path": "/dev/log"
},
"emptyDir": null,
"persistentDisk": null,
"gitRepo": null
}
}
],
"containers": [
{
"name": "pulp-db",
"image": "markllama/mongodb",
"ports": [
{
"containerPort": 27017,
"protocol": "TCP"
}
],
"volumeMounts": [
{
"name": "devlog",
"mountPath": "/dev/log",
"path": "/dev/log"
}
],
"imagePullPolicy": ""
}
],
"restartPolicy": {
"always": {}
}
}
},
"currentState": {
"manifest": {
"version": "",
"id": "",
"volumes": null,
"containers": null,
"restartPolicy": {}
},
"status": "Running",
"host": "10.245.2.3",
"hostIP": "10.245.2.3",
"podIP": "10.244.2.2",
"info": {
"net": {
"state": {
"running": {
"startedAt": "2014-12-16T15:22:36Z"
}
},
"restartCount": 0,
"podIP": "10.244.2.2",
"image": "kubernetes/pause:latest",
"containerID": "docker://8a2d92ecdabb506bbbf69ea06462f4eebdc0adae59a8d1663dd9dc2f5f196a74"
},
"pulp-db": {
"state": {
"running": {
"startedAt": "2014-12-16T15:27:04Z"
}
},
"restartCount": 0,
"image": "markllama/mongodb",
"containerID": "docker://8f21d45e49b18b37b98ea7556346095261699bc3664b52813a533edccee55a63"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment