Skip to content

Commit

Permalink
Merge pull request #30 from stakater/issue-29
Browse files Browse the repository at this point in the history
Update readme about how to define multiple configmaps and secrets
  • Loading branch information
kahootali authored Oct 8, 2018
2 parents 291f25f + 1cfa756 commit b973c37
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ Reloader can watch changes in `ConfigMap` and `Secret` and do rolling upgrades o

## How to use Reloader

### Configmap

For a `Deployment` called `foo` have a `ConfigMap` called `foo-configmap`. Then add this annotation to your `Deployment`

```yaml
Expand All @@ -29,7 +31,15 @@ metadata:
configmap.reloader.stakater.com/reload: "foo-configmap"
```
OR
Use comma separated list to define multiple configmaps.
```yaml
metadata:
annotations:
configmap.reloader.stakater.com/reload: "foo-configmap,bar-configmap,baz-configmap"
```
### Secret
For a `Deployment` called `foo` have a `Secret` called `foo-secret`. Then add this annotation to your `Deployment`

Expand All @@ -39,6 +49,14 @@ metadata:
secret.reloader.stakater.com/reload: "foo-secret"
```

Use comma separated list to define multiple secrets.

```yaml
metadata:
annotations:
secret.reloader.stakater.com/reload: "foo-secret,bar-secret,baz-secret"
```

## Deploying to Kubernetes

You can deploy Reloader by following methods:
Expand Down

0 comments on commit b973c37

Please sign in to comment.