diff --git a/apps/home-assistant.yaml b/apps/home-assistant.yaml new file mode 100644 index 0000000..ca472f1 --- /dev/null +++ b/apps/home-assistant.yaml @@ -0,0 +1,16 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: home-assistant + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: home-assistant + name: in-cluster + project: default + source: + path: apps/home-assistant + repoURL: https://github.com/vehagn/homelab + targetRevision: HEAD \ No newline at end of file diff --git a/apps/kustomization.yaml b/apps/kustomization.yaml deleted file mode 100644 index 4b400ce..0000000 --- a/apps/kustomization.yaml +++ /dev/null @@ -1,8 +0,0 @@ -apiVersion: kustomize.config.k8s.io/v1beta1 -kind: Kustomization - -resources: - - arr - - plex - - home-assistant - - whoami \ No newline at end of file diff --git a/apps/plex.yaml b/apps/plex.yaml new file mode 100644 index 0000000..e1bc6e5 --- /dev/null +++ b/apps/plex.yaml @@ -0,0 +1,16 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: plex + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: plex + name: in-cluster + project: default + source: + path: apps/plex + repoURL: https://github.com/vehagn/homelab + targetRevision: HEAD \ No newline at end of file diff --git a/infra/argocd/applications.yaml b/infra/argocd/applications.yaml new file mode 100644 index 0000000..c6464eb --- /dev/null +++ b/infra/argocd/applications.yaml @@ -0,0 +1,19 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: applications + namespace: argocd + finalizers: + - resources-finalizer.argocd.argoproj.io +spec: + destination: + namespace: applications + name: in-cluster + project: default + source: + path: apps + repoURL: https://github.com/vehagn/homelab + targetRevision: HEAD + syncPolicy: + syncOptions: + - CreateNamespace=true \ No newline at end of file diff --git a/infra/argocd/kustomization.yaml b/infra/argocd/kustomization.yaml index a56ef5b..02b7dc3 100644 --- a/infra/argocd/kustomization.yaml +++ b/infra/argocd/kustomization.yaml @@ -6,6 +6,7 @@ resources: - namespace.yaml - https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml - ingress.yaml + - applications.yaml # Let Traefik manage TLS-termination patchesStrategicMerge: