diff --git a/everything-app/app-of-apps.yaml b/everything-app/app-of-apps.yaml new file mode 100644 index 0000000..17277f7 --- /dev/null +++ b/everything-app/app-of-apps.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-of-apps + namespace: argocd +spec: + destination: + namespace: argocd + server: https://kubernetes.default.svc + project: infra + source: + path: everything-app/ + repoURL: https://git.martyn.berlin/martyn/infra4talos.git + targetRevision: HEAD + syncPolicy: + automated: + selfHeal: true diff --git a/everything-app/argocd.yaml b/everything-app/argocd.yaml index f890f35..541c0c6 100644 --- a/everything-app/argocd.yaml +++ b/everything-app/argocd.yaml @@ -7,7 +7,7 @@ spec: destination: namespace: argocd server: https://kubernetes.default.svc - project: default + project: infra source: path: manifests/cluster-install repoURL: https://github.com/argoproj/argo-cd diff --git a/everything-app/project-apps.yaml b/everything-app/project-apps.yaml new file mode 100644 index 0000000..c37e5e9 --- /dev/null +++ b/everything-app/project-apps.yaml @@ -0,0 +1,9 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: apps + namespace: argocd +spec: + description: everything non-infra + sourceRepos: + - https://git.martyn.berlin/martyn/infra4talos.git diff --git a/everything-app/project-infra.yaml b/everything-app/project-infra.yaml new file mode 100644 index 0000000..33d77dd --- /dev/null +++ b/everything-app/project-infra.yaml @@ -0,0 +1,13 @@ +apiVersion: argoproj.io/v1alpha1 +kind: AppProject +metadata: + name: infra + namespace: argocd +spec: + description: argo, nginx-ingress, etc. + destinations: + - name: '*' + namespace: '*' + server: https://kubernetes.default.svc + sourceRepos: + - https://git.martyn.berlin/martyn/infra4talos.git