-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
evict ingress-nginx-controller from kube-downscaler scope
- Loading branch information
1 parent
3a6e544
commit dd13eec
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...erno-policies-connectivity/templates/ingress-nginx-controller/KubeDownscalerEviction.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# THIS FILE IS GENERATED WITH 'make generate' - DO NOT EDIT MANUALLY | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
metadata: | ||
name: ingress-nginx-kube-downscaler-eviction | ||
spec: | ||
validationFailureAction: Enforce | ||
rules: | ||
- name: add-downscaler-exclude-annotation | ||
match: | ||
all: | ||
- resources: | ||
kinds: | ||
- Deployment | ||
- autoscaling/v2/HorizontalPodAutoscaler | ||
names: | ||
- ingress-nginx-controller | ||
mutate: | ||
patchStrategicMerge: | ||
metadata: | ||
annotations: | ||
downscaler/exclude: "true" |
21 changes: 21 additions & 0 deletions
21
policies/connectivity/ingress-nginx-controller/KubeDownscalerEviction.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: kyverno.io/v1 | ||
kind: ClusterPolicy | ||
metadata: | ||
name: ingress-nginx-kube-downscaler-eviction | ||
spec: | ||
validationFailureAction: Enforce | ||
rules: | ||
- name: add-downscaler-exclude-annotation | ||
match: | ||
all: | ||
- resources: | ||
kinds: | ||
- Deployment | ||
- autoscaling/v2/HorizontalPodAutoscaler | ||
names: | ||
- ingress-nginx-controller | ||
mutate: | ||
patchStrategicMerge: | ||
metadata: | ||
annotations: | ||
downscaler/exclude: "true" |