Challenge - 5 Problems
Helm Chart Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
Helm template rendering output
You have a Helm chart with a template that uses the following snippet:
If the values.yaml contains:
What will be the output of
{{- if .Values.service.enabled }}
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-service
spec:
type: {{ .Values.service.type }}
{{- end }}If the values.yaml contains:
service: enabled: true type: ClusterIP
What will be the output of
helm template mychart . regarding the Service resource?Attempts:
2 left
💡 Hint
Check how the if condition uses the values.yaml to include the Service resource.
✗ Incorrect
Since service.enabled is true, the if block includes the Service resource. The type is taken from values.yaml, so it is ClusterIP. The name uses the release name 'mychart' plus '-service'.
❓ Configuration
intermediate2:00remaining
Correct Helm Chart directory structure
Which of the following directory structures is the correct minimal layout for a custom Helm chart named
myapp?Attempts:
2 left
💡 Hint
Remember Helm requires a Chart.yaml file and a templates directory.
✗ Incorrect
The correct structure includes a capitalized Chart.yaml file, a values.yaml file, and a templates directory containing resource templates.
❓ Troubleshoot
advanced2:00remaining
Helm install failure due to missing values
You run
What is the most likely cause?
helm install myapp ./mychart and get the error:Error: YAML parse error on mychart/templates/deployment.yaml: error converting YAML to JSON: yaml: line 10: did not find expected key
What is the most likely cause?
Attempts:
2 left
💡 Hint
YAML parse errors usually mean indentation or syntax issues in the template files.
✗ Incorrect
The error points to a YAML syntax problem in deployment.yaml at line 10, likely due to wrong indentation or missing colon.
🔀 Workflow
advanced2:00remaining
Helm chart versioning best practice
You want to release a new version of your Helm chart with bug fixes but no API changes. Which version bump is recommended according to semantic versioning in Chart.yaml?
Attempts:
2 left
💡 Hint
Semantic versioning uses patch version for bug fixes without API changes.
✗ Incorrect
Patch version increments indicate backward-compatible bug fixes. Minor and major versions are for new features or breaking changes.
🧠 Conceptual
expert3:00remaining
Helm hooks execution order
Given these Helm hook annotations in templates:
What is the correct order of execution when you run
- pre-install
- post-install
- pre-upgrade
- post-upgrade
What is the correct order of execution when you run
helm upgrade --install on a new release?Attempts:
2 left
💡 Hint
For a new release, only install hooks run, not upgrade hooks.
✗ Incorrect
On a new install, Helm runs pre-install then post-install hooks. Upgrade hooks run only on upgrades.