Update readme about how to define multiple configmaps and secrets

Signed-off-by: faizanahmad055 <faizan.ahmad55@outlook.com>
This commit is contained in:
faizanahmad055
2018-10-08 12:22:04 +05:00
parent 291f25fd0e
commit e8854000cb
+19 -1
View File
@@ -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
@@ -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`
@@ -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: