Add to exemptions docs

This commit is contained in:
baderbuddy
2020-12-18 08:34:46 -05:00
committed by GitHub
parent edf28c8790
commit abca53d9a0
+10 -5
View File
@@ -18,19 +18,24 @@ kubectl annotate deployment my-deployment polaris.fairwinds.com/cpuRequestsMissi
## Config
To exempt a controller via the config, you have to specify a namespace (optional), a list of controller names and a list of rules, e.g.
To exempt a controller via the config, you have to specify a namespace (optional), a list of controller names and a list of rules (optional), e.g.
```yaml
exemptions:
# exemption valid for kube-system namespace
- namespace: kube-system
controllerNames:
- dns-controller
- dns-controller
rules:
- hostNetworkSet
- hostNetworkSet
# exemption valid for all rules on all controllers in default namespace
- namespace: default
controllerNames:
- ""
# exemption valid in all namespaces
- controllerNames:
- dns-controller
- dns-controller
rules:
- hostNetworkSet
- hostNetworkSet
```
If no rules are specified then every rule is exempted. Controller names are matched as a prefix, so an empty string will match every controller.