diff --git a/argocd/namespaces/cert/applications/cert-manager.yaml b/argocd/namespaces/cert/applications/cert-manager.yaml new file mode 100644 index 0000000..af19a1e --- /dev/null +++ b/argocd/namespaces/cert/applications/cert-manager.yaml @@ -0,0 +1,28 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: cert-manager + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "100" + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + project: cert + syncPolicy: + automated: + prune: true + selfHeal: true + destination: + namespace: cert + server: https://kubernetes.default.svc + source: + chart: cert-manager + repoURL: https://charts.jetstack.io + targetRevision: 1.19.2 + helm: + valuesObject: + crds: + enabled: true + extraArgs: + - "--enable-gateway-api" diff --git a/argocd/namespaces/namespace.yaml b/argocd/namespaces/namespace.yaml new file mode 100644 index 0000000..1ecea48 --- /dev/null +++ b/argocd/namespaces/namespace.yaml @@ -0,0 +1,9 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: cert + annotations: + argocd.argoproj.io/sync-wave: "-1000" + labels: + name: cert +spec: {} diff --git a/argocd/namespaces/project.yaml b/argocd/namespaces/project.yaml new file mode 100644 index 0000000..b8104b3 --- /dev/null +++ b/argocd/namespaces/project.yaml @@ -0,0 +1,27 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: cert + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "0" +spec: + description: Certs + clusterResourceWhitelist: + - group: apiextensions.k8s.io + kind: CustomResourceDefinition + - group: rbac.authorization.k8s.io + kind: ClusterRole + - group: rbac.authorization.k8s.io + kind: ClusterRoleBinding + - group: admissionregistration.k8s.io + kind: ValidatingWebhookConfiguration + - group: admissionregistration.k8s.io + kind: MutatingWebhookConfiguration + sourceRepos: + - '*' + destinations: + - namespace: cert + server: '*' + - namespace: kube-system + server: '*' \ No newline at end of file