Score:0

How to refer kubernetes secrets in properties file?

kr flag

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.

Vit avatar
cn flag
Vit
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?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.