1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00
kyverno/scripts/labs/argocd/7-kyverno.sh
Charles-Edouard Brétéché d96499462e
chore: update argocd lab (#6698)
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
2023-03-27 22:35:46 +08:00

46 lines
971 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.7.2
helm:
values: |
serviceMonitor:
enabled: true
initContainer:
extraArgs:
- --loggingFormat=json
extraArgs:
- --enableTracing
- --tracingAddress=tempo.monitoring
- --tracingPort=4317
- --loggingFormat=json
cleanupController:
tracing:
enabled: true
address: tempo.monitoring
port: 4317
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true
EOF