Difference between revisions of "Pod (Kubernetes)"
Jump to navigation
Jump to search
↑ https://kubernetes.io/docs/concepts/workloads/pods/pod/
↑ https://en.wikipedia.org/wiki/Kubernetes#Pods
↑ https://kubernetes.io/docs/concepts/workloads/controllers/replicaset/
(3 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
== Activities == | == Activities == | ||
− | # [[CKA v1. | + | # [[CKA v1.28]]: [[Understand connectivity between Pods]] |
# [[CKA v1.15]]: [[Create and configure a basic Pod]]: <code>[[kubectl apply]]</code> | # [[CKA v1.15]]: [[Create and configure a basic Pod]]: <code>[[kubectl apply]]</code> | ||
# Create a [[pod network]]: <code>[[kubeadm init]] --pod-network-cidr=10.244.0.0/16</code> | # Create a [[pod network]]: <code>[[kubeadm init]] --pod-network-cidr=10.244.0.0/16</code> | ||
Line 26: | Line 26: | ||
== Related terms == | == Related terms == | ||
* <code>[[kind: Pod]]</code> | * <code>[[kind: Pod]]</code> | ||
+ | * <code>[[podAnnotations:]]</code> | ||
* <code>[[podman pod stats]]</code> | * <code>[[podman pod stats]]</code> | ||
* <code>[[kubernetes.io]]/pod/volume/utilization</code> | * <code>[[kubernetes.io]]/pod/volume/utilization</code> | ||
Line 38: | Line 39: | ||
* <code>[[Error creating: pods]]</code> | * <code>[[Error creating: pods]]</code> | ||
* [[PodReadyToStartContainers]] | * [[PodReadyToStartContainers]] | ||
+ | * [[Pod updates may no change fields other than]] | ||
== See also == | == See also == |
Latest revision as of 17:38, 15 October 2024
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.
[edit]
kubectl apply
kubectl create -f mypod.yml
- Get a list of pods:
kubectl get pod MY_POD_NAME
kubectl delete pod MY_POD_NAME
kubectl top pod PODNAME
- Get more information about a pod:
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]
- CKA v1.28: Understand connectivity between Pods
- CKA v1.15: Create and configure a basic Pod:
kubectl apply
- Create a pod network:
kubeadm init --pod-network-cidr=10.244.0.0/16
- Mark a pod as critical: https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/#marking-pod-as-critical
Related terms[edit]
kind: Pod
podAnnotations:
podman pod stats
kubernetes.io/pod/volume/utilization
- List containers on a POD
readinessProbe, livenessProbe
kubectl exec --stdin --tty
- Kubernetes Container Lifecycle Events
- Kubernetes pod affinity and anti affinity
- Kubernetes, env:
- Pod Security: Kyverno
SecurityContext
Error creating: pods
- PodReadyToStartContainers
- Pod updates may no change fields other than
See also[edit]
- Pods:
kubectl apply
,kubectl [ pod get | top | delete | describe pods ]
,InitContainers, PodInitializing, CrashLoopBackOff, ImagePullPolicy:, NodeAffinity, NodeSelector, Terminated
- CKA: v1.28: API, Namespace, Pods, secrets, Services, deployments, nodes, Volumes, Ingress, CKS
Advertising: