Kubernetes Secrets vs ConfigMaps

后端 未结 3 621
囚心锁ツ
囚心锁ツ 2020-12-04 16:26

Have been using Kubernetes secrets up to date. Now we have ConfigMaps as well.

What is the preferred way forward - secrets or config maps?

P.S. After a few i

3条回答
  •  自闭症患者
    2020-12-04 16:53

    I'm the author of both of these features. The idea is that you should:

    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.

    Hope that helps.

提交回复
热议问题