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 10, 2018 in Kubernetes by Atul
• 10,240 points
1,004 views

1 answer to this question.

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 10, 2018 by ajs3033
• 7,300 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,240 points
1,219 views
0 votes
1 answer

Rancher vs Kubernetes

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

answered Mar 28, 2019 in Kubernetes by Alok
1,361 views
0 votes
1 answer

Rancher vs OpenShift

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

answered Mar 28, 2019 in Kubernetes by Ram
4,317 views
0 votes
1 answer

Kubernetes "secrets"

A Secret is an object that contains ...READ MORE

answered Jul 16, 2019 in Kubernetes by Sirajul
• 59,230 points
534 views
0 votes
1 answer

How to create secrets from a text file in Kubernetes?

Hi@akhtar, Secrets can contain user credentials required by ...READ MORE

answered Jul 16, 2020 in Kubernetes by MD
• 95,460 points
2,681 views
+1 vote
1 answer
0 votes
3 answers

Error while joining cluster with node

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

answered Jan 17, 2019 in Others by anonymous
15,574 views
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,061 views
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
• 11,380 points
2,572 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP