Bird
0
0

Given this snippet in values.yaml:

medium📝 Command Output Q13 of 15
Kubernetes - Helm Package Manager
Given this snippet in values.yaml:
replicaCount: 3
image:
  repository: nginx
  tag: stable
What will be the output of this Helm template snippet?
{{ .Values.replicaCount }} replicas of {{ .Values.image.repository }}:{{ .Values.image.tag }}
AreplicaCount replicas of image.repository:image.tag
BError: undefined values
C3 replicas of nginx:latest
D3 replicas of nginx:stable
Step-by-Step Solution
Solution:
  1. Step 1: Read values.yaml keys and values

    replicaCount is 3, image.repository is 'nginx', and image.tag is 'stable'.
  2. Step 2: Substitute values in template

    The template outputs: '3 replicas of nginx:stable' by replacing placeholders with values.
  3. Final Answer:

    3 replicas of nginx:stable -> Option D
  4. Quick Check:

    Values replaced correctly = 3 replicas of nginx:stable [OK]
Quick Trick: Match keys exactly to get correct output [OK]
Common Mistakes:
  • Using wrong tags like 'latest' instead of 'stable'
  • Not accessing nested keys properly
  • Expecting literal placeholders in output

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Kubernetes Quizzes