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
393 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,280 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
363 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
560 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
3,584 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,030 points
94 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 15, 2020 in Kubernetes by MD
• 95,140 points
298 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
10,225 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 11, 2019 in Kubernetes by Kalgi
• 52,310 points

reshown Apr 12, 2019 by Kalgi 3,157 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
1,140 views