简体   繁体   中英

Using Kubernetes configmap as config server for spring boot

Can we use a configmap on Kube.netes as config server. Kind of a central config and do away with config server?

Short answer: Yes, this is what we did.

One thing to note though is that config maps aren't as centralized as the config server. As the config map is local to your namespace you would have to keep all your environments (test, staging, production) inside the same namespace (which I do not recommend) in order to have a single config in the same manner as the cloud config gives you.

But even if you separate your environments into separate namespaces (which I recommend) and have one config map for each it's still easy to maintain and a good replacement for the config server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM