Deployments
Preview

Get a pod of a deployment

The pod as the live inventory reports it. Its YAML is read through the operator on request: `GET …/yaml`.

GET
/deployments/{deploymentId}/pods/{clusterId}/{pod}
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
clusterId*string
Formatuuid
pod*string
Lengthlength <= 253

Response Body

OK.

application/json
  1. response
clusterId*string
Formatuuid
clusterName*string
name*string
namespace*string
appId*|

The app whose workload owns the pod; null for one the running snapshot does not account for.

Formatuuid
appName*string
workload*|null
node*string
status*string
Value in"running""not_running"
phase*string

What to call the pod's state: the reason it is in trouble (CrashLoopBackOff, OOMKilled, ImagePullBackOff, Evicted) when it has one, else Running, or Pending when it is not running yet.

ready*boolean
restarts*integer
reason*string

Why it is in trouble (CrashLoopBackOff, OOMKilled, Evicted), or empty.

startedAt*|

When the kubelet started the pod; null before it has, or until the operator next reports a pod seen before this was kept.

Formatdate-time
containers*array<>

The pod's containers in spec order, as the operator last reported them. Empty until it next reports a pod seen before these were kept.

Itemsitems <= 32
initContainers*array<>

The pod's init containers, apart from its containers.

Itemsitems <= 32
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/pods/497f6eca-6276-4993-bfeb-53cbbbba6f08/string'
Example Response
{  "clusterId": "a3d24843-7014-4490-bdd3-b7cb39b400c8",  "clusterName": "string",  "name": "string",  "namespace": "string",  "appId": "28c365d5-df94-4a54-8217-3ce51d068868",  "appName": "string",  "workload": {    "kind": "string",    "name": "string"  },  "node": "string",  "status": "running",  "phase": "string",  "ready": true,  "restarts": 0,  "reason": "string",  "startedAt": "2019-08-24T14:15:22Z",  "containers": [    {      "name": "string",      "image": "string",      "ready": true,      "restarts": 0,      "state": "running",      "reason": "string"    }  ],  "initContainers": [    {      "name": "string",      "image": "string",      "ready": true,      "restarts": 0,      "state": "running",      "reason": "string"    }  ]}