Difference between revisions of "Pod (Kubernetes)"

From wikieduonline
Jump to navigation Jump to search
Line 27: Line 27:
 
* <code>[[kind: Pod]]</code>
 
* <code>[[kind: Pod]]</code>
 
* <code>[[podman pod stats]]</code>
 
* <code>[[podman pod stats]]</code>
* <code>[[SecurityContext]]</code>
 
 
* <code>[[kubernetes.io]]/pod/volume/utilization</code>
 
* <code>[[kubernetes.io]]/pod/volume/utilization</code>
 
* [[List containers on a POD]]
 
* [[List containers on a POD]]
Line 36: Line 35:
 
* [[Kubernetes, env:]]
 
* [[Kubernetes, env:]]
 
* [[Pod Security]]: [[Kyverno]]
 
* [[Pod Security]]: [[Kyverno]]
 +
* <code>[[SecurityContext]]</code>
  
 
== See also ==
 
== See also ==

Revision as of 17:22, 13 May 2023

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

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

  1. CKA v1.23 Understand connectivity between Pods
  2. CKA v1.15: Create and configure a basic Pod: kubectl apply
  3. Create a pod network: kubeadm init --pod-network-cidr=10.244.0.0/16
  4. Mark a pod as critical: https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical

Related terms

See also

  • https://kubernetes.io/docs/concepts/workloads/pods/pod/
  • https://en.wikipedia.org/wiki/Kubernetes#Pods
  • https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
  • Advertising: