From 5fa1b297dab439a46905716ae5ae681076c548bf Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Sun, 29 Jun 2025 13:51:11 +0200 Subject: [PATCH] Add argocd --- README.md | 10 ++++++++++ apps/apps.yaml | 17 +++++++++++++++++ apps/argocd.yaml | 21 +++++++++++++++++++++ shell.nix | 2 ++ 4 files changed, 50 insertions(+) create mode 100644 README.md create mode 100644 apps/apps.yaml create mode 100644 apps/argocd.yaml diff --git a/README.md b/README.md new file mode 100644 index 0000000..12c7c84 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +## Setup + +```bash +talhelper genconfig +talosctl kubeconfig -n 192.168.0.200 -e 192.168.0.200 +talosctl bootstrap + +helm install argocd oci://ghcr.io/argoproj/argo-helm/argo-cd -n argocd --create-namespace +kubectl apply -f ./apps/apps.yaml +``` diff --git a/apps/apps.yaml b/apps/apps.yaml new file mode 100644 index 0000000..be3f618 --- /dev/null +++ b/apps/apps.yaml @@ -0,0 +1,17 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: apps + namespace: argocd +spec: + project: default + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: true + source: + repoURL: https://github.com/zoriya/snow + targetRevision: HEAD + path: ./apps diff --git a/apps/argocd.yaml b/apps/argocd.yaml new file mode 100644 index 0000000..fd072f4 --- /dev/null +++ b/apps/argocd.yaml @@ -0,0 +1,21 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argocd + namespace: argocd +spec: + project: default + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: true + source: + repoURL: https://github.com/argoproj/argo-helm + targetRevision: argo-cd-8.1.2 + path: charts/argo-cd + helm: + values: | + global: + domain: argocd.sdg.moe diff --git a/shell.nix b/shell.nix index b59a031..90f8393 100644 --- a/shell.nix +++ b/shell.nix @@ -5,6 +5,8 @@ pkgs.mkShell { talosctl talhelper age + argocd + kubernetes-helm ]; TALOSCONFIG = "./clusterconfig/talosconfig";