0 votes
in Kubernetes K8s by
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]

1 Answer

0 votes
by
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.

Related questions

0 votes
asked Mar 24 in Kubernetes K8s by rajeshsharma
+1 vote
asked Sep 29, 2022 in Kubernetes K8s by SakshiSharma
...