Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What is the command to create a Kubernetes ConfigMap?
Home
Kubernetes K8s
What is the command to create a Kubernetes ConfigMap?
0
votes
asked
Mar 24
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
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.
Related questions
0
votes
Q: What is Kubernetes ConfigMap?
asked
May 19
in
Kubernetes K8s
by
rajeshsharma
kubernetes
configmap
0
votes
Q: What is Kubernetes ConfigMap?
asked
Mar 20
in
Kubernetes K8s
by
rajeshsharma
kubernetes
configmap
0
votes
Q: What is the command to create a Kubernetes Operator?
asked
Mar 24
in
Kubernetes K8s
by
rajeshsharma
kubernetes
operator
0
votes
Q: What is the command to create a Kubernetes Secret?
asked
Mar 24
in
Kubernetes K8s
by
rajeshsharma
kubernetes
secret
0
votes
Q: What is the command to create a Kubernetes Deployment?
asked
Mar 24
in
Kubernetes K8s
by
rajeshsharma
kubernetes
deployment
0
votes
Q: What is the command to create a Kubernetes Namespace?
asked
Mar 24
in
Kubernetes K8s
by
rajeshsharma
kubernetes
namespace
0
votes
Q: What is the command to install a Kubernetes Helm chart?
asked
Mar 24
in
Kubernetes K8s
by
rajeshsharma
kubernetes
helm
chart
0
votes
Q: What is the command to scale a Kubernetes Deployment?
asked
Mar 24
in
Kubernetes K8s
by
rajeshsharma
kubernetes
deployment
+1
vote
Q: Command used to create ConfigMaps from file “fresco.ids” is.
asked
Sep 29, 2022
in
Kubernetes K8s
by
SakshiSharma
kubernetes
configmaps
+1
vote
Q: Command used to create ConfigMaps of “port=8000” is
asked
Sep 29, 2022
in
Kubernetes K8s
by
SakshiSharma
kubernetes
configuration
...