Login
Remember
Register
Ask a Question
What is the command to create a Kubernetes ConfigMap?
0
votes
asked
Mar 24, 2024
in
Kubernetes K8s
by
rajeshsharma
What is the command to create a Kubernetes ConfigMap?
a) kubectl create -f configmap.yaml
b) kubectl create configmap [name] –from-file=[filename]
c) kubectl apply -f configmap.yaml
d) kubectl create cm [name] –from-file=[filename]
kubernetes
configmap
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Mar 24, 2024
by
rajeshsharma
Answer: b)
Explanation: kubectl create configmap [name] –from-file=[filename]. This command creates a new Kubernetes ConfigMap with the specified name and data from the specified file.
...