Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
pod definition - Yaml definition of a pod.
{
"apiVersion": "v1",
"kind": "Pod",
"metadata": {
"creationTimestamp": "2019-01-12T18:19:02Z",
"generateName": "docone-deployment3-6594cdc4d-",
"labels": {
"pod-template-hash": "6594cdc4d",
"run": "docone-deployment3"
},
"name": "docone-deployment3-6594cdc4d-ls9pk",
"namespace": "default",
"ownerReferences": [
{
"apiVersion": "apps/v1",
"blockOwnerDeletion": true,
"controller": true,
"kind": "ReplicaSet",
"name": "docone-deployment3-6594cdc4d",
"uid": "8991d469-1696-11e9-a69e-00155d02061f"
}
],
"resourceVersion": "33014",
"selfLink": "/api/v1/namespaces/default/pods/docone-deployment3-6594cdc4d-ls9pk",
"uid": "8992fa5c-1696-11e9-a69e-00155d02061f"
},
"spec": {
"containers": [
{
"image": "pradeepl/doconedev:latest",
"imagePullPolicy": "Always",
"name": "docone-deployment3",
"ports": [
{
"containerPort": 80,
"protocol": "TCP"
}
],
"resources": {},
"terminationMessagePath": "/dev/termination-log",
"terminationMessagePolicy": "File",
"volumeMounts": [
{
"mountPath": "/var/run/secrets/kubernetes.io/serviceaccount",
"name": "default-token-9ph68",
"readOnly": true
}
]
}
],
"dnsPolicy": "ClusterFirst",
"enableServiceLinks": true,
"nodeName": "docker-desktop",
"priority": 0,
"restartPolicy": "Always",
"schedulerName": "default-scheduler",
"securityContext": {},
"serviceAccount": "default",
"serviceAccountName": "default",
"terminationGracePeriodSeconds": 30,
"tolerations": [
{
"effect": "NoExecute",
"key": "node.kubernetes.io/not-ready",
"operator": "Exists",
"tolerationSeconds": 300
},
{
"effect": "NoExecute",
"key": "node.kubernetes.io/unreachable",
"operator": "Exists",
"tolerationSeconds": 300
}
],
"volumes": [
{
"name": "default-token-9ph68",
"secret": {
"defaultMode": 420,
"secretName": "default-token-9ph68"
}
}
]
},
"status": {
"conditions": [
{
"lastProbeTime": null,
"lastTransitionTime": "2019-01-12T18:19:02Z",
"status": "True",
"type": "Initialized"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-01-13T02:56:47Z",
"status": "True",
"type": "Ready"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-01-13T02:56:47Z",
"status": "True",
"type": "ContainersReady"
},
{
"lastProbeTime": null,
"lastTransitionTime": "2019-01-12T18:19:02Z",
"status": "True",
"type": "PodScheduled"
}
],
"containerStatuses": [
{
"containerID": "docker://e3521ac960db5e70755f4fcdd8eb546cbd82e5d50fde0308b3fb08ed12c6e662",
"image": "doconedev:latest",
"imageID": "docker-pullable://pradeepl/doconedev@sha256:1a8c55fb0a876efb7dfcc108b5b0ff80d6e039d1c18e19f70608a8eb8abe470b",
"lastState": {
"terminated": {
"containerID": "docker://83910b067e3bec550d968386da7aa6f40262bcfa7307ea5caaec83192b1195cc",
"exitCode": 255,
"finishedAt": "2019-01-13T02:55:38Z",
"reason": "Error",
"startedAt": "2019-01-12T18:19:06Z"
}
},
"name": "docone-deployment3",
"ready": true,
"restartCount": 1,
"state": {
"running": {
"startedAt": "2019-01-13T02:56:47Z"
}
}
}
],
"hostIP": "192.168.65.3",
"phase": "Running",
"podIP": "10.1.0.30",
"qosClass": "BestEffort",
"startTime": "2019-01-12T18:19:02Z"
}
}
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.