Kubernetes CKA Practice Question #12 - Creating a Deployment with Pods Simulating DaemonSet Behavior
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- In this walkthrough video, I solve Certified Kubernetes Administrator (CKA) Practice Question #12, where we create a Deployment named deploy-important in the project-tiger Namespace with the label id=very-important. The Deployment will have 3 replicas using the image nginx:1.17.6-alpine, but here's the twist: only one Pod from the Deployment will run on each worker node (we have two worker nodes: kind-control-plane and kind-worker), and the third Pod won't be scheduled unless a new worker node is added. This setup mimics DaemonSet behavior but uses a Deployment with a fixed number of replicas.
If you're studying for the CKA exam or looking to enhance your Kubernetes skills, this is a great example to learn about advanced Deployment strategies and resource distribution in Kubernetes clusters.
Key topics covered:
Creating a Kubernetes Deployment
Using labels to organize and manage Pods
Replicating DaemonSet behavior with a Deployment and fixed replicas
Managing Pods across multiple nodes in a cluster
Don't forget to like, share, and subscribe for more Kubernetes tutorials and CKA practice question walkthroughs!
#cka #kubernetes #deployment #pods #nginx #kubectl #daemonset #kubernetesadmin #ckapractice #devops #cloudcomputing #kubernetescluster