# k8s-admission-control / kubernetes / t1 "Standard" # # Kyverno installed by Argo CD from a pinned chart, then its policies from your # repository in a second Application, so the policies only arrive once the # controller that enforces them is running. --- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: kyverno namespace: argocd finalizers: - resources-finalizer.argocd.argoproj.io annotations: argocd.argoproj.io/sync-wave: "-10" spec: project: platform source: repoURL: https://kyverno.github.io/kyverno/ chart: kyverno # Kyverno 1.19. Move it forward in a pull request, never by floating it. targetRevision: 3.9.1 helm: values: | admissionController: # One replica means one pod restart pauses every admission check in # the cluster. Three keeps it answering. replicas: 3 destination: server: https://kubernetes.default.svc namespace: kyverno syncPolicy: automated: prune: true selfHeal: true syncOptions: - CreateNamespace=true # Kyverno's resource definitions are too large for a normal apply. # Without server-side apply the sync fails on an annotation size limit. - ServerSideApply=true --- apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: kyverno-policies namespace: argocd finalizers: - resources-finalizer.argocd.argoproj.io annotations: argocd.argoproj.io/sync-wave: "-5" spec: project: platform source: repoURL: https://github.com/your-org/your-cluster-config.git # change me targetRevision: main path: outcomes/k8s-admission-control/kubernetes/t1/policies destination: server: https://kubernetes.default.svc syncPolicy: automated: prune: true selfHeal: true