Loading video player...
☸️ Day 48: Deploy Pods in Kubernetes Cluster | 100 Days of DevOps Welcome to Day 48 of the 100 Days of DevOps series! In this lab, you’ll create and deploy a Kubernetes Pod using the httpd image. 📌 Lab Objective: Create a Kubernetes Pod with specific labels, image tags, and container naming conventions. 🛠️ Task Requirements: Pod Name: pod-httpd Image: httpd Container Name: httpd-container Label: app=httpd_app 💻 Step-by-Step Solution: 🔹 1. Create Pod Using kubectl kubectl run pod-httpd \ --image=httpd:latest \ --labels app=httpd_app \ --dry-run=client -o yaml ➡️ pod.yaml 🔹 2. Edit YAML (Container Name) vi pod.yaml 👉 Update container name section: containers: - name: httpd-container image: httpd:latest 🔹 3. Deploy Pod kubectl apply -f pod.yaml 🔹 4. Verify Pod kubectl get pods --show-labels 🔹 5. Describe Pod (Optional) kubectl describe pod pod-httpd 🔍 Expected Outcome: ✅ Pod pod-httpd running successfully ✅ Image httpd:latest used ✅ Label app=httpd_app applied ✅ Container name httpd-container configured 📚 What You’ll Learn: Creating Pods in Kubernetes Using container images and tags Applying labels to Kubernetes objects Working with YAML manifests Basic Kubernetes troubleshooting 🌟 Why This Lab Matters: Pods are the smallest deployable unit in Kubernetes and form the foundation of container orchestration. 🎯 Series: 100 Days of DevOps Keep mastering Kubernetes and cloud-native technologies step by step. 🔔 Follow OtterTech for more hands-on DevOps and Kubernetes tutorials! #Kubernetes #K8s #Pods #Containers #DevOps #CloudNative #Docker #Kubectl #100DaysOfDevOps #OtterTech #Day48