File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -32,21 +32,25 @@ WARNING! Double quotes and variable substitutions in env values are not supporte
32
32
33
33
### ConfigMap Example
34
34
35
- ``` sh
35
+ ```
36
36
$ cat ./env/core.env
37
37
# =Comments and empty lines are ignored
38
38
NAME=Product Name
39
39
40
40
DB_DRIVER=com.mysql.jdbc.Driver
41
41
DB_POOL_MAXSIZE=15
42
42
DB_POOL_MINSIZE=10
43
+ ```
43
44
45
+ ```
44
46
$ cat ./env/prod.env
45
47
# =Comments and empty lines are ignored
46
48
DB_POOL_MAXSIZE=20
47
49
48
50
DB_URL=jdbc:mysql://db.example.com/mydb?characterEncoding=UTF-8
51
+ ```
49
52
53
+ ``` sh
50
54
$ keg my-config ./env/core.env ./env/prod.env
51
55
52
56
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:
171
175
172
176
### Secret Example
173
177
174
- ` ` ` sh
178
+ ` ` `
175
179
$ cat ./env/secret-core.env
176
180
# For demo only, never commit secrets to git
177
181
DB_USER=admin
178
182
DB_PASSWORD=mysql
183
+ ```
179
184
185
+ ```
180
186
$ cat ./env/secret-prod.env
181
187
# For demo only, never commit secrets to git
182
188
DB_PASSWORD=4J,brw=v\G}dF4JC7QYVWjeHu;GRen
189
+ ```
183
190
191
+ ``` sh
184
192
$ keg -s my-secret ./env/secret-core.env ./env/secret-prod.env
185
193
186
194
apiVersion: v1
You can’t perform that action at this time.
0 commit comments