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
777 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
924 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,046 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,115 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
354 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,440 points
2,128 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
14,526 views
+4 votes
1 answer

Installing Web UI (Dashboard):kubernetes-dashboard on main Ubuntu 16.04.6 LTS (Xenial Xerus) server

Follow these steps: $ kubeadm reset $ kubeadm init ...READ MORE

answered Apr 12, 2019 in Kubernetes by Kalgi
• 52,360 points

reshown Apr 12, 2019 by Kalgi 5,979 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,185 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