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 plus create configmap from rest of config.properties. That will ruin your logic?
    – Vit
    Mar 22 at 10:22


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.