Skip to content

Commit 80d353b

Browse files
author
Dennis Hoer
committed
Tweak readme
1 parent 2d3a714 commit 80d353b

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,21 +32,25 @@ WARNING! Double quotes and variable substitutions in env values are not supporte
3232

3333
### ConfigMap Example
3434

35-
```sh
35+
```
3636
$ cat ./env/core.env
3737
# =Comments and empty lines are ignored
3838
NAME=Product Name
3939
4040
DB_DRIVER=com.mysql.jdbc.Driver
4141
DB_POOL_MAXSIZE=15
4242
DB_POOL_MINSIZE=10
43+
```
4344

45+
```
4446
$ cat ./env/prod.env
4547
# =Comments and empty lines are ignored
4648
DB_POOL_MAXSIZE=20
4749
4850
DB_URL=jdbc:mysql://db.example.com/mydb?characterEncoding=UTF-8
51+
```
4952

53+
```sh
5054
$ keg my-config ./env/core.env ./env/prod.env
5155

5256
kubectl create configmap my-config --from-literal=name="Product Name" --from-literal=db-driver="com.mysql.jdbc.Driver" --from-literal=db-pool-minsize="10" --from-literal=db-pool-maxsize="20" --from-literal=db-url="jdbc:mysql://db.example.com/mydb?characterEncoding=UTF-8"
@@ -171,16 +175,20 @@ spec:
171175
172176
### Secret Example
173177
174-
```sh
178+
```
175179
$ cat ./env/secret-core.env
176180
# For demo only, never commit secrets to git
177181
DB_USER=admin
178182
DB_PASSWORD=mysql
183+
```
179184

185+
```
180186
$ cat ./env/secret-prod.env
181187
# For demo only, never commit secrets to git
182188
DB_PASSWORD=4J,brw=v\G}dF4JC7QYVWjeHu;GRen
189+
```
183190

191+
```sh
184192
$ keg -s my-secret ./env/secret-core.env ./env/secret-prod.env
185193

186194
apiVersion: v1

0 commit comments

Comments
 (0)