Skip to content

Commit

Permalink
Tweak readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Hoer committed Nov 21, 2016
1 parent 2d3a714 commit 80d353b
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,21 +32,25 @@ WARNING! Double quotes and variable substitutions in env values are not supporte

### ConfigMap Example

```sh
```
$ cat ./env/core.env
# =Comments and empty lines are ignored
NAME=Product Name
DB_DRIVER=com.mysql.jdbc.Driver
DB_POOL_MAXSIZE=15
DB_POOL_MINSIZE=10
```

```
$ cat ./env/prod.env
# =Comments and empty lines are ignored
DB_POOL_MAXSIZE=20
DB_URL=jdbc:mysql://db.example.com/mydb?characterEncoding=UTF-8
```

```sh
$ keg my-config ./env/core.env ./env/prod.env

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"
Expand Down Expand Up @@ -171,16 +175,20 @@ spec:
### Secret Example
```sh
```
$ cat ./env/secret-core.env
# For demo only, never commit secrets to git
DB_USER=admin
DB_PASSWORD=mysql
```

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

```sh
$ keg -s my-secret ./env/secret-core.env ./env/secret-prod.env

apiVersion: v1
Expand Down

0 comments on commit 80d353b

Please sign in to comment.