mirror of
https://github.com/FairwindsOps/polaris.git
synced 2026-08-23 22:26:34 +00:00
Add to exemptions docs
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user