forked from bitnami-labs/sealed-secrets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.yaml
33 lines (33 loc) · 821 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: example
spec:
selector:
matchLabels:
app: example
template:
metadata:
labels:
app: example
spec:
containers:
# This is an example application that assumes a complex configuration file in /config/myconfig.json.
# The JSON format here is just an example; any textual file format would work.
- name: app
image: bitnami/minideb:buster
volumeMounts:
- name: config-volume
mountPath: /config
command: ["sh", "-c"]
args:
- |
echo Your app will get this config file:
cat /config/myconfig.json
# dummy application
sleep 100000h
volumes:
- name: config-volume
secret:
secretName: example