Kubernetes - Service MeshWhich of the following is the correct way to define a sidecar container for Envoy in a Kubernetes pod spec?Acontainers: - name: app - image: envoyproxy/envoyBcontainers: - name: envoy - image: envoyproxy/envoyCcontainers: - name: envoy - image: nginxDcontainers: - name: envoyproxy - image: envoyproxy/envoyCheck Answer
Step-by-Step SolutionSolution:Step 1: Identify the correct container name and imageThe sidecar container should be named clearly (e.g., 'envoy') and use the official Envoy image 'envoyproxy/envoy'.Step 2: Check the options for correctnesscontainers: - name: envoy - image: envoyproxy/envoy correctly names the container 'envoy' and uses the right image. containers: - name: app - image: envoyproxy/envoy misnames the container as 'app'. containers: - name: envoy - image: nginx uses the wrong image 'nginx'. containers: - name: envoyproxy - image: envoyproxy/envoy uses a different container name but correct image.Final Answer:containers: - name: envoy - image: envoyproxy/envoy -> Option BQuick Check:Envoy container name and image must match [OK]Quick Trick: Sidecar container name 'envoy' with image 'envoyproxy/envoy' [OK]Common Mistakes:Using wrong container name for EnvoyUsing incorrect image like nginxMixing app container with sidecar container
Master "Service Mesh" in Kubernetes9 interactive learning modes - each teaches the same concept differentlyLearnWhyDeepVisualTryChallengeProjectRecallTime
More Kubernetes Quizzes Helm Package Manager - Installing Helm - Quiz 5medium Helm Package Manager - Adding chart repositories - Quiz 15hard Monitoring and Logging - Kubernetes dashboard - Quiz 11easy Operators and Custom Resources - Why operators extend Kubernetes - Quiz 3easy Operators and Custom Resources - Why operators extend Kubernetes - Quiz 5medium Production Best Practices - Pod Disruption Budgets - Quiz 5medium Production Best Practices - Cluster upgrade strategies - Quiz 6medium Production Best Practices - Cluster upgrade strategies - Quiz 8hard Service Mesh - Mutual TLS for service communication - Quiz 2easy Troubleshooting - Why troubleshooting skills are critical - Quiz 1easy