apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: flannel
  namespace: argocd
spec:
  project: system
  source:
    repoURL: "https://flannel-io.github.io/flannel/"
    targetRevision: v0.24.x
    chart: flannel
    helm:
      valuesObject:
        podCidr: 10.42.0.0/16
  destination:
    namespace: kube-flannel
    name: in-cluster
  syncPolicy:
    syncOptions:
      - CreateNamespace=true
      - ServerSideApply=true