Kubelet API | HTTP request | Description |
---|---|---|
/stats
|
GET /stats |
Return the performance stats of node, pods and containers |
/metrics
|
GET /metrics |
Return information about node CPU and memory usage |
/logs
|
GET /logs |
Logs from the node |
/spec
|
GET /spec |
Cached MachineInfo returned by cadvisor |
/pods
|
GET /pods |
List of pods |
/healthz
|
GET /healthz |
Check the state of the node |
/configz
|
GET /configz |
Kubelet's configurations |
/containerLogs
|
GET /containerLogs/{podNamespace}/{podID}/{containerName} |
Container's logs |
/run
|
POST /run/{podNamespace}/{podID}/{containerName} |
Run command inside a container |
/exec
|
GET /exec/{podNamespace}/{podID}/{containerName}?command={command}/&input=1&output=1&tty=1 |
Run command inside a container with option for stream (interactive) |
/cri
|
GET /cri/exec/{valueFrom302}?cmd={command} |
Run commands inside a container through the Container Runtime Interface (CRI) |
/attach
|
GET /attach/{podNamespace}/{podID}/{containerName} |
Attach to a container |
/portForward
|
GET /portForward/{podNamespace}/{podID}/{containerName} |
Port forwarding inside the contianer |
/runningpods
|
GET /runningpods |
List all the running pods |
/debug
|
GET /debug/pprof/{profile} |
List all the running pods |