GhaniABCDEFG Posted February 15, 2020 Report Share Posted February 15, 2020 Guys, need some help on kubernets, if anyone aware how to deploy spring boot app on kubernets and inject config properties using config map! Please advice or if anyone have setup in your environments or experience working on similar let me know. Thanks in advance. Quote Link to comment Share on other sites More sharing options...
reddyeee Posted February 15, 2020 Report Share Posted February 15, 2020 take embedded tomcat base image for springboot and build your image based on that. create a configmap in k8s with the config files that your application needs create a secret in k8s with the sensitive info that your application needs (certs, passwords etc.) create a k8 deployment and provide docker image details, pod requirements, where to copy the configmap in to pod, where to copy sectets in to pod etc details. www.kubernetes.io has all sample code Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.