Complete the code to select pods with label app=web.
selector:
matchLabels:
app: [1]The selector must match the label value 'web' to select the correct pods.
Complete the service selector to match pods with label tier=backend.
selector:
matchLabels:
tier: [1]The selector must match the label value 'backend' to select the correct pods.
Fix the error in the selector to correctly match pods with label env=prod.
selector:
matchLabels:
env: [1]The pods are labeled with env=prod, so the selector must use 'prod'.
Fill both blanks to select pods with labels app=api and version=v1.
selector:
matchLabels:
app: [1]
version: [2]The selector must match app=api and version=v1 to select the correct pods.
Fill all three blanks to create a selector for pods with labels role=frontend, env=staging, and track=canary.
selector:
matchLabels:
role: [1]
env: [2]
track: [3]The selector must match role=frontend, env=staging, and track=canary to select the correct pods.