0
0
Kubernetesdevops~10 mins

Creating ConfigMaps from literals in Kubernetes - Interactive Practice

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

Complete the command to create a ConfigMap named my-config from a literal key-value pair.

Kubernetes
kubectl create configmap my-config --from-literal=[1]
Drag options to blanks, or click blank then click option'
Aapp_frontend
Bapp:frontend
Capp=frontend
Dapp=frontend=prod
Attempts:
3 left
💡 Hint
Common Mistakes
Using colon ':' instead of equal sign '='.
Adding extra equal signs in the literal.
Using underscores instead of equal sign.
2fill in blank
medium

Complete the command to create a ConfigMap named settings with two literals: mode=production and debug=false.

Kubernetes
kubectl create configmap settings --from-literal=mode=production [1]
Drag options to blanks, or click blank then click option'
A--from-literal=debug=false
B--from-literal debug=false
C--from-literal:debug=false
D--from-literal debug:false
Attempts:
3 left
💡 Hint
Common Mistakes
Using space instead of equal sign after --from-literal.
Using colon ':' instead of equal sign '='.
Combining literals without repeating --from-literal.
3fill in blank
hard

Fix the error in the command to create a ConfigMap named app-config with a literal key 'version' and value '1.0'.

Kubernetes
kubectl create configmap app-config --from-literal=version[1]1.0
Drag options to blanks, or click blank then click option'
A:
B-
C==
D=
Attempts:
3 left
💡 Hint
Common Mistakes
Using colon ':' instead of equal sign.
Using double equal signs '=='.
Using dash '-' instead of equal sign.
4fill in blank
hard

Fill both blanks to create a ConfigMap named config with literals for environment=dev and debug=true.

Kubernetes
kubectl create configmap config [1] [2]
Drag options to blanks, or click blank then click option'
A--from-literal=environment=dev
B--from-literal environment=dev
C--from-literal=debug=true
D--from-literal debug=true
Attempts:
3 left
💡 Hint
Common Mistakes
Using space instead of equal sign after --from-literal.
Not repeating --from-literal for each literal.
Using colon ':' instead of equal sign '='.
5fill in blank
hard

Fill all three blanks to create a ConfigMap named full-config with literals: host=localhost, port=8080, and debug=false.

Kubernetes
kubectl create configmap full-config [1] [2] [3]
Drag options to blanks, or click blank then click option'
A--from-literal=host=localhost
B--from-literal=port=8080
C--from-literal=debug=false
D--from-literal host=localhost
Attempts:
3 left
💡 Hint
Common Mistakes
Using space instead of equal sign after --from-literal.
Not repeating --from-literal for each literal.
Using colon ':' instead of equal sign '='.