In configmap we have given a name ie.., application name like below

With the spring-cloud dependencies, the application executes in spring cloud profiles not with local profiles. so the application.yml in configmap is loaded for properties loader of spring boot.

The same prefix is loaded here. Please take the sample code in the story and try to deploy in kubernetes engine or minikube instance. The application startup logs give enough information about application loading.

Written by

Experience in Open source development, Technical Leader. Expert in Java/J2EE, Integration, analytics. Loves Cricket, cooking, movies and travelling.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store