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.