kubernetes tutorial | Static Pods | Demo - Create Static Pods

VSPARKZ
VSPARKZ
1.7 هزار بار بازدید - 3 سال پیش - Certified Kubernetes Administrator--------------------------------------------------------------kubernetes tutorial |
Certified Kubernetes Administrator
--------------------------------------------------------------
kubernetes tutorial | Static Pods | Demo - Create Static Pods

Description
--------------------------
In this video, you are going to learn the concepts of Static Pods & a demo on how to create static pods using yaml

Recap: What are Pods ?
What are Static Pods ?
More on Static Pods
How to create a Static POD ?
What will happen if a  Static Pod is deleted ?
DEMO: Create Static Pods



For suggestions/feedback/doubts contact
email: [email protected]

Happy Learning !!!


===========================================================================================

USEFUL LINKS
---------------------------

Kubernetes Pods


https://kubernetes.io/docs/concepts/w...


Static Pods

https://kubernetes.io/docs/tasks/conf...

API References

https://kubernetes.io/docs/reference/...

==========================================================================================
#cka #kubernetes #k8s #containers

DEMO STEPS
---------------------------

Step 1: Pre-requisites or Assumptions

$ kubectl cluster-info

Step 2: Inspect the Kubernetes Cluster

$ kubectl get pods -n kube-system

$ kubectl get nodes

$ kubectl get nodes --show-labels


Step 3: Create POD Manifest using kubectl commands

$ kubectl run static-pod --image=nginx --dry-run=client  -o yaml

Step 4: Create a Static Pod using the POD Manifest file

Copy the content of step 3 and create a file static-pod.yaml under /etc/kubernetes/manifests


Step 5: Delete the Static Pod and Observe the Behavior


$ kubectl delete pod static-pod

$ rm /etc/kubernetes/manifests/static-pod.yaml


===========================================================================================================================================
3 سال پیش در تاریخ 1400/10/23 منتشر شده است.
1,733 بـار بازدید شده
... بیشتر