Skip to content

Commit

Permalink
Update info about native envsubst
Browse files Browse the repository at this point in the history
  • Loading branch information
insidieux committed May 2, 2018
1 parent 5448995 commit 2ac1f48
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,18 @@ kubectl create -f namespace-limit-range.yaml --namespace=slack-duty-bot
```
or use native `envsubst`
```bash
(SDB_NAME=bot-name SDB_TAG=1.0.0 envsubst < $(pwd)/.kubernetes/deploy.yaml.tpl) $(pwd)/.kubernetes/deploy.yaml
(SDB_SLACK_TOKEN_BASE64=your-token-hash \
SDB_NAME=your-deployment-name \
SDB_TAG=1.0.0 \
SDB_KEYWORD=your-keyword \
SDB_SLACK_DEFAULT_USER=default-username \
SDB_SLACK_GROUP_ID=group-id \
SDB_SLACK_GROUP_NAME=group-name \
envsubst < $(pwd)/.kubernetes/deploy.yaml.tpl) $(pwd)/.kubernetes/deploy.yaml
```

After that you can change configuration with `kubect` or edit config map directly from Kubernetes dashboard

#### Deploy!
```bash
kubectl apply -f $(pwd)/.kubernetes/deploy.yaml --namespace slack-duty-bot
Expand Down

0 comments on commit 2ac1f48

Please sign in to comment.