Pods

Pods are the smallest unit of work you’ll deal with in Kubernetes and will contain one or more related docker containers. The best practice for deploying pods is to create them via Deployments, so pod creation functions are not provided in the K9 library.

k9.core.list_pods(namespace: Optional[str] = None)[source]

List all pods in a given namespace

Parameters

namespace – Namespace to search. If None, uses the default namespace

Returns

Returns a list of pods - each pod represented by a dictionary with name, status, ip, node, labels, reason, and start_time