How to load properties from kubernetes configMap based on activated spring profiles How to load properties from kubernetes configMap based on activated spring profiles kubernetes kubernetes

How to load properties from kubernetes configMap based on activated spring profiles


apiVersion: v1
kind: ConfigMap
data:
application.yaml: |-
host: hello-app
---
spring:
profiles: dev
host: hello-dev