Skip to content

Commit

Permalink
Refactor Kubernetes resource restrictions and set background to false
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlahbib committed Nov 20, 2024
1 parent e478103 commit 2145dfc
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions terraform/kyverno.tf
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ metadata:
name: app-must-have-label
spec:
validationFailureAction: enforce
background: true
background: false
rules:
- name: app-must-have-label
match:
Expand Down Expand Up @@ -53,7 +53,7 @@ metadata:
name: restrict-container-registries
spec:
validationFailureAction: enforce
background: true
background: false
rules:
- name: restrict-contrainer-registries
match:
Expand Down Expand Up @@ -84,7 +84,7 @@ metadata:
name: disallow-latest-tag
spec:
validationFailureAction: enforce
background: true
background: false
rules:
- name: require-image-tag
match:
Expand Down Expand Up @@ -116,7 +116,7 @@ metadata:
name: disallow-nodeport-service
spec:
validationFailureAction: enforce
background: true
background: false
rules:
- name: disallow-nodeport-service
match:
Expand Down Expand Up @@ -146,6 +146,7 @@ metadata:
name: enforce-max-replicas
spec:
validationFailureAction: enforce
background: false
rules:
- name: enforce-max-replicas
match:
Expand Down Expand Up @@ -203,6 +204,7 @@ metadata:
name: disallow-privileged-containers
spec:
validationFailureAction: enforce
background: false
rules:
- name: disallow-privileged-containers
match:
Expand Down Expand Up @@ -240,6 +242,7 @@ metadata:
name: require-pod-probes
spec:
validationFailureAction: enforce
background: false
rules:
- name: require-pod-probes
match:
Expand Down Expand Up @@ -272,6 +275,7 @@ metadata:
name: require-resource-limits
spec:
validationFailureAction: audit
background: false
rules:
- name: require-resource-limits
match:
Expand Down

0 comments on commit 2145dfc

Please sign in to comment.