1

We have a properties file where all our application configuration is there, in key-value pairs.

All the key-value pairs is in single config.properties file.

So, I kept that data in configmap and linked to this file in kubernetes.

Working fine so far.

But, to increase security, we want to keep some key-value pairs as secrets.

But, how to refer those secrets in the config.properties file without changing any application logic.

Please suggest.

  • split config.properties and separate needed key-value pairs to another properties file. Then [create secrets from newly created properties](https://phoenixnap.com/kb/kubernetes-secrets#ftoc-heading-4) plus create configmap from rest of config.properties. That will ruin your logic? – Vit Mar 22 '22 at 10:22

0 Answers0