Kubernetes groups containers into pods. What is the main reason for this design when deploying microservices?
Think about how containers inside a pod interact and share resources.
Kubernetes pods group containers that need to work closely together. They share storage, network, and specifications, making communication and resource sharing simple.
After deploying a microservice with Kubernetes, you run kubectl get pods. What output do you expect to see?
kubectl get pods
Look for the standard columns shown by kubectl get pods.
The command kubectl get pods lists pods with columns like NAME, READY, STATUS, RESTARTS, and AGE. Option B matches this format and shows a running pod.
Arrange the steps in the correct order to deploy a microservice using Kubernetes.
Think about writing configuration first, then applying it, checking status, and finally exposing the service.
The correct workflow is to write the deployment YAML, apply it, verify pods are running, then expose the deployment with a service.
You deployed a microservice pod, but it stays in CrashLoopBackOff status. What is the most likely cause?
Think about what 'CrashLoopBackOff' means in Kubernetes pod status.
'CrashLoopBackOff' means the container inside the pod keeps crashing and Kubernetes is trying to restart it repeatedly.
When updating a microservice deployed on Kubernetes, what is the recommended approach to avoid downtime?
Consider how Kubernetes handles updates to keep services available.
Rolling updates allow Kubernetes to replace pods one by one, ensuring the service stays available during updates.