Skip to content

Commit 851b788

Browse files
committed
feat: Add config.yaml example to configmap
1 parent aa388a4 commit 851b788

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

12_config_map.yml

+9
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ metadata:
44
name: my-config
55
data:
66
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
716
hello.html: |
817
<h1>Hello from ConfigMap</h1>
918
<p>This is stored in ConfigMap</p>

13_secret_example.yml

+3
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ spec:
4949
subPath: hello.html
5050
- name: config
5151
mountPath: /usr/share/nginx/html/configmap
52+
- name: config
53+
mountPath: /usr/share/nginx/html/config.yaml.txt
54+
subPath: config.yaml
5255
resources:
5356
requests:
5457
memory: 50Mi

0 commit comments

Comments
 (0)