Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to specify the image tag in a Helm values file.
Kubernetes
image:
tag: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' can cause unexpected updates.
Leaving tag empty causes Helm to use default image tag.
✗ Incorrect
The tag field sets the image version. Here, v1.0.0 is a specific version tag.
2fill in blank
mediumComplete the code to set the number of replicas in a Helm values file.
Kubernetes
replicaCount: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings instead of numbers.
Setting replicas to 0 disables the app.
✗ Incorrect
The replicaCount field defines how many pod copies run. It must be a number, like 3.
3fill in blank
hardFix the error in the Helm values snippet to enable service type LoadBalancer.
Kubernetes
service:
type: [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using ClusterIP when external access is needed.
Typo in service type name.
✗ Incorrect
To expose the service externally, the type must be LoadBalancer.
4fill in blank
hardFill both blanks to customize resource limits in Helm values.
Kubernetes
resources:
limits:
cpu: [1]
memory: [2] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using '1Gi' for CPU or '500m' for memory.
Omitting units causes errors.
✗ Incorrect
CPU limits use millicores like 500m. Memory limits use units like 512Mi.
5fill in blank
hardFill all four blanks to define environment variables in Helm values.
Kubernetes
env: - name: [1] value: [2] - name: [3] value: [4]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around values.
Swapping names and values.
✗ Incorrect
Environment variables need a name and a value for each variable.