From 6140fc8370210d00af7a244e85070c00df86cf46 Mon Sep 17 00:00:00 2001 From: Vegard Hagen Date: Fri, 30 Dec 2022 18:23:28 +0100 Subject: [PATCH] feat(argocd): Deploying Plex and HAss using ArgoCD --- apps/home-assistant.yaml | 16 ++++++++++++++++ apps/kustomization.yaml | 8 -------- apps/plex.yaml | 16 ++++++++++++++++ infra/argocd/applications.yaml | 19 +++++++++++++++++++ infra/argocd/kustomization.yaml | 1 + 5 files changed, 52 insertions(+), 8 deletions(-) create mode 100644 apps/home-assistant.yaml delete mode 100644 apps/kustomization.yaml create mode 100644 apps/plex.yaml create mode 100644 infra/argocd/applications.yaml 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: