Files

19 lines
581 B
YAML

# Pod spec fragment wiring the Secret above into Spring Boot. NOT applied to a cluster in this
# module: the config tree layout it relies on is reproduced in KubernetesConfigtreeTest.
spec:
containers:
- name: app
image: example/secrets-demo:1.0.0
env:
- name: SPRING_CONFIG_IMPORT
value: "configtree:/etc/secrets/db/"
volumeMounts:
- name: db-credentials
mountPath: /etc/secrets/db
readOnly: true
volumes:
- name: db-credentials
secret:
secretName: db-credentials
defaultMode: 0400