0
0
Kubernetesdevops~10 mins

Chart values and customization in Kubernetes - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete 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'
Av1.0.0
Blatest
Cstable
Ddefault
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'latest' can cause unexpected updates.
Leaving tag empty causes Helm to use default image tag.
2fill in blank
medium

Complete 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'
Adefault
B0
Cone
D3
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings instead of numbers.
Setting replicas to 0 disables the app.
3fill in blank
hard

Fix 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'
AClusterIP
BNodePort
CLoadBalancer
DExternalName
Attempts:
3 left
💡 Hint
Common Mistakes
Using ClusterIP when external access is needed.
Typo in service type name.
4fill in blank
hard

Fill 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'
A500m
B1Gi
C1000m
D512Mi
Attempts:
3 left
💡 Hint
Common Mistakes
Using '1Gi' for CPU or '500m' for memory.
Omitting units causes errors.
5fill in blank
hard

Fill 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'
ADATABASE_URL
B"postgres://user:pass@db:5432/app"
CLOG_LEVEL
D"info"
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting quotes around values.
Swapping names and values.