Spring boot app dont reading values from 2nd file in configmap

252 views Asked by At

We are using implementation("org.springframework.cloud:spring-cloud-starter-kubernetes-client-config:2.1.1").

For configmap used 2 files: application.yaml|yml, application-parent.yaml|yml.

kind: ConfigMap
metadata:
  name: {{ .Values.application }}
  namespace: {{ .Release.Namespace }}
data:
  application.yml: |
  {{ (.Files.Glob "config/application.yaml").AsConfig | indent 2 }}
  application-dev.yml: |
  {{ (.Files.Glob "config/application-parent.yaml").AsConfig | indent 2 }}

After successful deploy and startup application reading values from application.yml, but ignoring values from application-parent.yml.

k8s console screenshot

What can i do wrong?

0

There are 0 answers