diff --git a/README.md b/README.md index 2c8e600e..24e5c214 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,17 @@ You can apply vanilla manifests by running the following command kubectl apply -f https://raw.githubusercontent.com/stakater/Reloader/master/deployments/kubernetes/reloader.yaml ``` -By default Reloader gets deployed in `default` namespace and watches changes `secrets` and `configmaps` in all namespaces. +By default Reloader gets deployed in `default` namespace and watches changes `secrets` and `configmaps` in all namespaces. + +Reloader can be configured to ignore the resources `secrets` and `configmaps` by passing the following args (`spec.template.spec.containers.args`) to its container : + +| Args | Description | +|---|---| +| --resources-to-ignore=configMaps | To ignore configMaps | +| --resources-to-ignore=secrets | To ignore secrets | + +`Note`: At one time only one of these resource can be ignored, trying to do it will cause error in Reloader. Workaround for ignoring both resources is by scaling down the reloader pods to `0`. + ### Vanilla kustomize @@ -158,6 +168,17 @@ helm install stakater/reloader helm install stakater/reloader --set reloader.watchGlobally=false --namespace test ``` +Reloader can be configured to ignore the resources `secrets` and `configmaps` by using the following parameters of `values.yaml` file: + +| Parameter | Description | Type | +|---|---|---| +| ignoreSecrets | To ignore secrets. Valid value are either `true` or `false` | boolean | +| ignoreConfigMaps | To ignore configMaps. Valid value are either `true` or `false` | boolean | + +`Note`: At one time only one of these resource can be ignored, trying to do it will cause error in helm template compilation. + + + ## Help ### Documentation