commit c8f3c5188b9d483909e7075690b08ac7118df95d parent 9f098d9bad40a1f1d65108929f82bd68e0c52df5 Author: MTRNord <mtrnord1@gmail.com> Date: Fri, 28 Mar 2025 14:51:28 +0100 Use kubescape controller Diffstat:
| A | infrastructure/controllers/kubescape.yaml | | | 31 | +++++++++++++++++++++++++++++++ |
| M | infrastructure/controllers/kustomization.yaml | | | 1 | + |
2 files changed, 32 insertions(+), 0 deletions(-)
diff --git a/infrastructure/controllers/kubescape.yaml b/infrastructure/controllers/kubescape.yaml @@ -0,0 +1,31 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: kubescape +--- +apiVersion: source.toolkit.fluxcd.io/v1beta2 +kind: HelmRepository +metadata: + name: kubescape + namespace: kubescape +spec: + interval: 24h + url: https://kubescape.github.io/helm-charts/ +--- +apiVersion: helm.toolkit.fluxcd.io/v2 +kind: HelmRelease +metadata: + name: kubescape + namespace: kubescape +spec: + chart: + spec: + chart: kubescape-operator + sourceRef: + kind: HelmRepository + name: kubescape + interval: 60m + values: + clusterName: midnightthoughts.k8s.local + capabilities: + continuousScan: enable diff --git a/infrastructure/controllers/kustomization.yaml b/infrastructure/controllers/kustomization.yaml @@ -9,3 +9,4 @@ resources: - csi-driver-smb.yaml - ./cloudnative-pg-operator - hubble_ui.yaml + - kubescape.yaml