mirror of
https://github.com/kyverno/kyverno.git
synced 2024-12-14 11:57:48 +00:00
92e5b3a5c8
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
38 lines
733 B
Bash
Executable file
38 lines
733 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# CREATE KYVERNO APP
|
|
|
|
kubectl apply -f - <<EOF
|
|
apiVersion: argoproj.io/v1alpha1
|
|
kind: Application
|
|
metadata:
|
|
name: kyverno
|
|
namespace: argocd
|
|
spec:
|
|
destination:
|
|
namespace: kyverno
|
|
server: https://kubernetes.default.svc
|
|
project: default
|
|
source:
|
|
chart: kyverno
|
|
repoURL: https://kyverno.github.io/kyverno
|
|
targetRevision: 2.6.2
|
|
helm:
|
|
values: |
|
|
serviceMonitor:
|
|
enabled: true
|
|
initContainer:
|
|
extraArgs:
|
|
- --loggingFormat=json
|
|
extraArgs:
|
|
- --loggingFormat=json
|
|
syncPolicy:
|
|
automated:
|
|
prune: true
|
|
selfHeal: true
|
|
syncOptions:
|
|
- CreateNamespace=true
|
|
- ServerSideApply=true
|
|
EOF
|