0
0
Kubernetesdevops~10 mins

Creating ConfigMaps from files 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 the file app.properties.

Kubernetes
kubectl create configmap my-config --from-file=[1]
Drag options to blanks, or click blank then click option'
Aapp.properties
Bapp.yaml
Csettings.txt
Dconfig.json
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong filename that does not exist.
Confusing file extensions.
2fill in blank
medium

Complete the command to create a ConfigMap named config-map from multiple files in the directory config/.

Kubernetes
kubectl create configmap config-map --from-file=[1]
Drag options to blanks, or click blank then click option'
Aconfig.yaml
Bconfigs/
Cconfig/
Dconfigmap.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using a wrong directory name.
Using a single file name instead of a directory.
3fill in blank
hard

Fix the error in the command to create a ConfigMap named app-config from the file settings.conf.

Kubernetes
kubectl create configmap app-config --from-file=[1]
Drag options to blanks, or click blank then click option'
Asetting.conf
Bsettings.conf.json
Csettings.conf.yaml
Dsettings.conf
Attempts:
3 left
💡 Hint
Common Mistakes
Misspelling the file name.
Adding extra extensions like .yaml or .json.
4fill in blank
hard

Fill both blanks to create a ConfigMap named multi-config from two files: db.conf and app.conf.

Kubernetes
kubectl create configmap multi-config --from-file=[1] --from-file=[2]
Drag options to blanks, or click blank then click option'
Adb.conf
Bapp.conf
Cdatabase.conf
Dapplication.conf
Attempts:
3 left
💡 Hint
Common Mistakes
Using incorrect file names.
Trying to combine files in one --from-file option.
5fill in blank
hard

Fill all three blanks to create a ConfigMap named full-config from files frontend.conf, backend.conf, and database.conf.

Kubernetes
kubectl create configmap full-config --from-file=[1] --from-file=[2] --from-file=[3]
Drag options to blanks, or click blank then click option'
Afrontend.conf
Bbackend.conf
Cdatabase.conf
Dconfig.yaml
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong file names.
Trying to list multiple files in one --from-file option.