Pod (Kubernetes)

From wikieduonline
Jump to navigation Jump to search

Kubernetes Pods [1][2] are the smallest deployable units that allows to deploy one or multiple containers as a single atomic unit. Pods are defined using YAML files and applied with kubectl apply command.

Pod related commands[edit]

kubectl get pods
kubectl describe pod MY_POD_NAME
  • List all container by pod:
kubectl get pods -o jsonpath='{range .items[*]}{"pod: "}{.metadata.name}{"\n"}{range .spec.containers[*]}{"\tname: "}{.name}{"\n\timage: "}{.image}{"\n"}{end}'


See also ReplicaSet[3] concept.

Activities[edit]

Related terms[edit]

See also[edit]

Advertising: