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,240 points
64 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 9, 2018 by ajs3033
• 7,240 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
42 views
0 votes
1 answer

Rancher vs Kubernetes

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

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

Rancher vs OpenShift

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

answered Mar 28 in Kubernetes by Ram
329 views
0 votes
1 answer

Kubernetes "secrets"

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

answered 5 days ago in Kubernetes by Sirajul
• 5,960 points
8 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
1,150 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
• 10,110 points
198 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,240 points
28 views