Loading video player...
Here is code: apiVersion: v1 kind: Pod metadata: name: sample-pod labels: app: multicontainer-demo spec: restartPolicy: Always containers: - name: main-container image: ubuntu command: ["/bin/bash", "-c", "while true; do echo This is main-container; sleep 15; done"] - name: sidecar-container image: centos:7 command: ["/bin/bash", "-c", "while true; do echo This is sidecar-container; sleep 15; done"] ========================== In this video, we are keen on understanding the Kubernetes Pod Object using a real-time multi-container example. We will basically walk through a Pod manifest where one is the main container and another is the sidecar container, and explain why because Kubernetes behaves this way. However, many people get confused since they only see theory. That is where this video becomes different. This is where we use actual YAML, kubectl apply, kubectl get pods, kubectl describe, kubectl logs, and kubectl exec to understand what is really happening inside the Pod. You will see: • Why Pod is the smallest deployable unit in Kubernetes • How main container runs the application • How sidecar container supports the main container • Why READY 2/2 appears and what it means • How to fetch logs from a specific container • How to exec into a container without confusion Despite of being a beginner topic, this video also helps experienced engineers, especially for interview preparation and technical huddles. Eventually, after watching this video, you will be confident enough to explain Pod Object, multi-container architecture, and kubectl commands clearly in interviews and real projects. 👉 If you are serious about Kubernetes and DevOps, subscribe, because this is where real learning happens.