2022-11-22 08:36:40 +00:00
|
|
|
#!/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
|
2023-03-27 14:35:46 +00:00
|
|
|
targetRevision: 2.7.2
|
2022-11-22 08:36:40 +00:00
|
|
|
helm:
|
|
|
|
values: |
|
|
|
|
serviceMonitor:
|
|
|
|
enabled: true
|
|
|
|
initContainer:
|
|
|
|
extraArgs:
|
|
|
|
- --loggingFormat=json
|
|
|
|
extraArgs:
|
2023-03-27 14:35:46 +00:00
|
|
|
- --enableTracing
|
|
|
|
- --tracingAddress=tempo.monitoring
|
|
|
|
- --tracingPort=4317
|
2022-11-22 08:36:40 +00:00
|
|
|
- --loggingFormat=json
|
2023-03-27 14:35:46 +00:00
|
|
|
cleanupController:
|
|
|
|
tracing:
|
|
|
|
enabled: true
|
|
|
|
address: tempo.monitoring
|
|
|
|
port: 4317
|
2022-11-22 08:36:40 +00:00
|
|
|
syncPolicy:
|
|
|
|
automated:
|
|
|
|
prune: true
|
|
|
|
selfHeal: true
|
|
|
|
syncOptions:
|
|
|
|
- CreateNamespace=true
|
|
|
|
- ServerSideApply=true
|
|
|
|
EOF
|