Auto-install kyverno chart

This commit is contained in:
Greg Hellings
2025-09-11 21:39:53 -05:00
parent 3cf32090d6
commit c6b96642f7
4 changed files with 17 additions and 44 deletions
-2
View File
@@ -6,8 +6,6 @@ SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# Change to the script directory
cd "$SCRIPT_DIR"
kubectl apply -f helm/kyverno.yaml
sleep 15
kubectl apply -k helm
sleep 5
# https://cloudnative-pg.io
-2
View File
@@ -1,6 +1,4 @@
resources:
- flux.yaml
- kyverno.yaml # Needed to configure Longhorn
- longhorn.yaml # Needed for storage
- traefik.yaml
- external-secrets.yaml
-40
View File
@@ -1,40 +0,0 @@
apiVersion: v1
kind: Namespace
metadata:
name: kyverno-system
---
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: kyverno
namespace: kyverno-system
spec:
interval: "24h"
url: "https://kyverno.github.io/kyverno/"
---
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: kyverno
namespace: kyverno-system
spec:
interval: 10m
chart:
spec:
chart: kyverno
version: "3.4.4"
sourceRef:
kind: HelmRepository
name: kyverno
interval: "1h"
values:
admissionController:
replicas: 3
backgroundController:
replicas: 3
cleanupController:
replicas: 2
reportsController:
replicas: 2
crds:
install: true