Import data to config map from kubernetes secret

后端 未结 2 2087
半阙折子戏
半阙折子戏 2021-02-19 07:41

I\'m using a kubernetes ConfigMap that contains database configurations for an app and there is a secret that has the database password. I need to use this secret in the ConfigM

2条回答
  •  离开以前
    2021-02-19 08:18

    I would transform the whole configMap into a secret and deploy the database password directly in there. Then you can mount the secret as a file to a volume and use it like a regular config file in the container.

提交回复
热议问题