We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa388a4 commit 851b788Copy full SHA for 851b788
12_config_map.yml
@@ -4,6 +4,15 @@ metadata:
4
name: my-config
5
data:
6
config: hello
7
+ config.yaml: |
8
+ DB_HOST: db.company.com
9
+ DB_PORT: 5432
10
+ DB_USER: root
11
+ DB_PASSOWRD: root
12
+ config.toml: |
13
+ [wtf]
14
+ hello = world
15
+ foo = bar
16
hello.html: |
17
<h1>Hello from ConfigMap</h1>
18
<p>This is stored in ConfigMap</p>
13_secret_example.yml
@@ -49,6 +49,9 @@ spec:
49
subPath: hello.html
50
- name: config
51
mountPath: /usr/share/nginx/html/configmap
52
+ - name: config
53
+ mountPath: /usr/share/nginx/html/config.yaml.txt
54
+ subPath: config.yaml
55
resources:
56
requests:
57
memory: 50Mi
0 commit comments