diff --git a/argoapps/argocd.yaml b/argoapps/argocd.yaml new file mode 100644 index 0000000..926c11e --- /dev/null +++ b/argoapps/argocd.yaml @@ -0,0 +1,21 @@ +--- +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: argocd + namespace: argocd +spec: + project: default + source: + repoURL: https://github.com/argoproj/argo-helm/ + targetRevision: argo-cd-5.22.0 + path: charts/argo-cd + destination: + server: https://kubernetes.default.svc + namespace: argocd + syncPolicy: + automated: + prune: false + selfHeal: true + allowEmpty: true + \ No newline at end of file diff --git a/bin/start-argo.sh b/bin/start-argo.sh new file mode 100755 index 0000000..1b76cd9 --- /dev/null +++ b/bin/start-argo.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +# kubectl create namespace argocd +# kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml + +helm install argocd k8s/infra/argocd --namespace argocd --create-namespace + +watch -n1 "kubectl -n argocd get all" \ No newline at end of file diff --git a/k8s/infra/argocd/.gitkeep b/k8s/infra/argocd/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/k8s/infra/argocd/.helmignore b/k8s/infra/argocd/.helmignore new file mode 100644 index 0000000..0e8a0eb --- /dev/null +++ b/k8s/infra/argocd/.helmignore @@ -0,0 +1,23 @@ +# Patterns to ignore when building packages. +# This supports shell glob matching, relative path matching, and +# negation (prefixed with !). Only one pattern per line. +.DS_Store +# Common VCS dirs +.git/ +.gitignore +.bzr/ +.bzrignore +.hg/ +.hgignore +.svn/ +# Common backup files +*.swp +*.bak +*.tmp +*.orig +*~ +# Various IDEs +.project +.idea/ +*.tmproj +.vscode/ diff --git a/k8s/infra/argocd/Chart.lock b/k8s/infra/argocd/Chart.lock new file mode 100644 index 0000000..56c2bb3 --- /dev/null +++ b/k8s/infra/argocd/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: argo-cd + repository: https://argoproj.github.io/argo-helm + version: 5.22.1 +digest: sha256:a42319e9923fe037a7a51944037cbab78ba36b09fd41bc7e3c5c1e17b1b5d21f +generated: "2023-02-21T02:06:56.297472485Z" diff --git a/k8s/infra/argocd/Chart.yaml b/k8s/infra/argocd/Chart.yaml new file mode 100644 index 0000000..9895401 --- /dev/null +++ b/k8s/infra/argocd/Chart.yaml @@ -0,0 +1,9 @@ +apiVersion: v2 +name: argocd +description: Homelab Infra +type: application +version: 0.1.0 +dependencies: + - name: argo-cd + version: 5.22.1 + repository: https://argoproj.github.io/argo-helm \ No newline at end of file diff --git a/k8s/infra/argocd/charts/argo-cd-5.22.1.tgz b/k8s/infra/argocd/charts/argo-cd-5.22.1.tgz new file mode 100644 index 0000000..badcaa3 Binary files /dev/null and b/k8s/infra/argocd/charts/argo-cd-5.22.1.tgz differ diff --git a/k8s/infra/argocd/values.yaml b/k8s/infra/argocd/values.yaml new file mode 100644 index 0000000..21297f1 --- /dev/null +++ b/k8s/infra/argocd/values.yaml @@ -0,0 +1,4 @@ +argo-cd: + crds: + install: true + keep: false \ No newline at end of file