Skip to content

Instantly share code, notes, and snippets.

@marcguilera
Created November 19, 2021 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcguilera/b73e2b0d9b5367ac1da7c0e10a7e2f4b to your computer and use it in GitHub Desktop.
Save marcguilera/b73e2b0d9b5367ac1da7c0e10a7e2f4b to your computer and use it in GitHub Desktop.
---
spring:
application:
name: service
cloud:
kubernetes:
config:
enabled: false
kubernetes:
enabled: true
namespace: platform
configmap: ${spring.application.name}-config
---
spring:
config:
activate:
on-profile: kubernetes
cloud:
kubernetes:
reload:
enabled: ${kubernetes.enabled}
config:
enabled: ${kubernetes.enabled}
namespace: ${kubernetes.namespace}
useNameAsPrefix: false
includeProfileSpecificSources: false
name: ${kubernetes.configmap}
# also tried with sources array
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment