Complete the code to add a label named env with value production to the pod metadata.
metadata:
labels:
env: [1]The label env is set to production to mark the pod environment.
Complete the code to add an annotation named description with value frontend pod to the pod metadata.
metadata:
annotations:
description: [1]Annotations store non-identifying metadata like descriptions. Here, it describes the pod as 'frontend pod'.
Fix the error in the label selector to select pods with label tier equal to frontend.
kubectl get pods -l tier=[1]The label value must exactly match the label assigned to pods. Here, it is 'frontend'.
Fill both blanks to create a pod manifest with a label app set to nginx and an annotation maintainer set to team-a.
metadata:
labels:
app: [1]
annotations:
maintainer: [2]The label app is set to 'nginx' to identify the application. The annotation maintainer is set to 'team-a' to indicate ownership.
Fill all three blanks to create a pod manifest with label role set to db, annotation backup set to daily, and label zone set to us-east.
metadata:
labels:
role: [1]
zone: [2]
annotations:
backup: [3]The label role is 'db' to indicate database pods. The label zone is 'us-east' for location. The annotation backup is 'daily' to specify backup frequency.