tutorialworks / comments

Comments on our articles
https://www.tutorialworks.com
4 stars 1 forks source link

spring-boot-kubernetes-override-properties/ #18

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

How to Override Any Spring Boot Property in Kubernetes

With applications on Kubernetes, we are always striving for externalised configuration. So how do you set a property on a Spring Boot app in Kubernetes? Find out how in this article.

https://www.tutorialworks.com/spring-boot-kubernetes-override-properties/

hughesadam87 commented 3 years ago

How did I not know this env variables trick! SO HELPFUL THANKS

hughesadam87 commented 3 years ago

Something to add - if you have a camelcase property like

foo.bar.someProp

Then the someProp also gets an underscore. The the ENV var becomes FOO_BAR_SOME_PROP

monodot commented 2 years ago

@hugadams Excellent, thanks for sharing the tip about camel case!