Skip to content

Instantly share code, notes, and snippets.

@marcguilera
Created Nov 19, 2021
Embed
What would you like to do?
---
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