The 'containers' field is a list of container definitions.
Step 2: Identify correct YAML structure
spec:
containers:
- name: app
image: nginx
- name: sidecar
image: busybox correctly uses a list under 'containers' with each container having 'name' and 'image'.
Final Answer:
spec:
containers:
- name: app
image: nginx
- name: sidecar
image: busybox is the correct YAML snippet.
Quick Check:
Containers must be under 'containers' as a list [OK]
Quick Trick:'containers' is a list of container specs [OK]
Common Mistakes:
Using 'container' instead of 'containers'
Not using a list for multiple containers
Incorrect indentation or missing keys
Master "Pods" in Kubernetes
9 interactive learning modes - each teaches the same concept differently