ConfigMaps vs Secrets

0 votes
I've always used secrets in kubernetes so far. Now we also have ConfigMaps. Which one should I use in what situations?
Oct 9, 2018 in Kubernetes by Atul
• 10,200 points
39 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

From the author of both of these features, here's the idea behind when you should use both:

  1. Use secrets for things which are actually secret like API keys, credentials, etc
  2. Use config map for not-secret configuration data

In the future there will likely be some differentiators for secrets like rotation or support for backing the secret API w/ HSMs, etc. In general we like intent-based APIs, and the intent is definitely different for secret data vs. plain old configs.

answered Oct 9, 2018 by ajs3033
• 7,040 points

Related Questions In Kubernetes

0 votes
1 answer

ConfigMaps volume not creating file in container

Did a little research and found the ...READ MORE

answered Sep 6, 2018 in Kubernetes by Atul
• 10,200 points
31 views
0 votes
1 answer

Rancher vs Kubernetes

Rancher operates at a higher level and ...READ MORE

answered Mar 28 in Kubernetes by Alok
39 views
0 votes
1 answer

Rancher vs OpenShift

They both excel in different fields, Rancher ...READ MORE

answered Mar 28 in Kubernetes by Ram
129 views
0 votes
1 answer
0 votes
3 answers

Error while joining cluster with node

Hi Kalgi after following above steps it ...READ MORE

answered Jan 17 in Others by anonymous
491 views
+3 votes
1 answer
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 9,070 points
132 views
0 votes
1 answer

Hadoop Streaming job vs regular jobs?

In certain cases, Hadoop Streaming is beneficial ...READ MORE

answered Mar 21, 2018 in Data Analytics by kurt_cobain
• 9,260 points
20 views
0 votes
1 answer

Hadoop MapReduce vs MongoDB MapReduce

Hadoop vs MongoDB MR: 1) Hadoop's MR can ...READ MORE

answered Mar 26, 2018 in Big Data Hadoop by nitinrawat895
• 9,070 points
92 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.