diff --git a/apps/cd/app-of-apps.yaml b/apps/cd/app-of-apps.yaml new file mode 100644 index 0000000..4dc8fa0 --- /dev/null +++ b/apps/cd/app-of-apps.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-of-apps + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-1" +spec: + project: cd + syncPolicy: + automated: + prune: true + selfHeal: true + source: + path: apps/ + directory: + recurse: true + repoURL: git@gitlab.mareshq.com:hq/cthulhunetes/gitops.git + targetRevision: HEAD + destination: + server: "https://kubernetes.default.svc" + namespace: default diff --git a/apps/cd/app-of-projects.yaml b/apps/cd/app-of-projects.yaml new file mode 100644 index 0000000..f49620e --- /dev/null +++ b/apps/cd/app-of-projects.yaml @@ -0,0 +1,22 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-of-projects + namespace: argocd + annotations: + argocd.argoproj.io/sync-wave: "-10" +spec: + project: cd + syncPolicy: + automated: + prune: true + selfHeal: true + syncOptions: + - CreateNamespace=true + source: + path: projects/ + repoURL: git@gitlab.mareshq.com:hq/cthulhunetes/gitops.git + targetRevision: HEAD + destination: + server: "https://kubernetes.default.svc" + namespace: default