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.
...