Skip to content

Commit

Permalink
Added Kyverno.
Browse files Browse the repository at this point in the history
  • Loading branch information
lreimer committed Dec 3, 2024
1 parent 75a0e5f commit 39b2696
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 0 deletions.
6 changes: 6 additions & 0 deletions infrastructure/platform/kyverno/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- repository.yaml
- release.yaml
4 changes: 4 additions & 0 deletions infrastructure/platform/kyverno/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
kind: Namespace
apiVersion: v1
metadata:
name: kyverno
42 changes: 42 additions & 0 deletions infrastructure/platform/kyverno/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: kyverno
namespace: flux-system
spec:
chart:
spec:
chart: kyverno
sourceRef:
kind: HelmRepository
name: kyverno
version: "3.3.3"
interval: 1h0m0s
releaseName: kyverno
targetNamespace: kyverno
values:
admissionController:
replicas: 3
backgroundController:
replicas: 3
cleanupController:
replicas: 3
reportsController:
replicas: 3
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: kyverno-policies
namespace: flux-system
spec:
chart:
spec:
chart: kyverno-policies
sourceRef:
kind: HelmRepository
name: kyverno
version: "3.3.1"
interval: 1h0m0s
releaseName: kyverno-policies
targetNamespace: kyverno
8 changes: 8 additions & 0 deletions infrastructure/platform/kyverno/repository.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1beta1
kind: HelmRepository
metadata:
name: kyverno
namespace: flux-system
spec:
interval: 1h0m0s
url: https://kyverno.github.io/kyverno/

0 comments on commit 39b2696

Please sign in to comment.