From 469771fe54df26a1752ec208bc3c5e1a8f188d77 Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Sat, 20 Aug 2022 15:03:51 +0200 Subject: [PATCH] feat: install argocd a.k.a initial commit --- .editorconfig | 13 +++++++++++++ .gitignore | 1 + _argocd/Chart.lock | 6 ++++++ _argocd/Chart.yaml | 11 +++++++++++ _argocd/app-of-apps.yaml | 18 ++++++++++++++++++ _argocd/values.yaml | 36 ++++++++++++++++++++++++++++++++++++ 6 files changed, 85 insertions(+) create mode 100644 .editorconfig create mode 100644 .gitignore create mode 100644 _argocd/Chart.lock create mode 100644 _argocd/Chart.yaml create mode 100644 _argocd/app-of-apps.yaml create mode 100644 _argocd/values.yaml diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..87a0020 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,13 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true +end_of_line = lf +max_line_length = null + +[Makefile] +indent_style = tab diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25b4569 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/charts/*.tgz diff --git a/_argocd/Chart.lock b/_argocd/Chart.lock new file mode 100644 index 0000000..bae8da5 --- /dev/null +++ b/_argocd/Chart.lock @@ -0,0 +1,6 @@ +dependencies: +- name: argo-cd + repository: https://argoproj.github.io/argo-helm + version: 4.10.8 +digest: sha256:9b111631d0f374f73094835ad8e16f47871fd8e907f972dbb301b9deffe03992 +generated: "2022-08-20T14:37:05.086337+02:00" diff --git a/_argocd/Chart.yaml b/_argocd/Chart.yaml new file mode 100644 index 0000000..753913b --- /dev/null +++ b/_argocd/Chart.yaml @@ -0,0 +1,11 @@ +apiVersion: v2 +name: argocd +description: A Helm chart for Kubernetes +type: application +version: 0.1.0 +appVersion: "1.0" + +dependencies: +- name: argo-cd + version: 4.10.8 + repository: https://argoproj.github.io/argo-helm diff --git a/_argocd/app-of-apps.yaml b/_argocd/app-of-apps.yaml new file mode 100644 index 0000000..2b74724 --- /dev/null +++ b/_argocd/app-of-apps.yaml @@ -0,0 +1,18 @@ +apiVersion: argoproj.io/v1alpha1 +kind: Application +metadata: + name: app-of-apps + namespace: argocd +spec: + destination: + namespace: argocd + server: https://kubernetes.default.svc + project: default + source: + path: apps + repoURL: https://gitlab.mareshq.com/gitops/mareshq/fox.git + targetRevision: HEAD + syncPolicy: + automated: + prune: true + selfHeal: true diff --git a/_argocd/values.yaml b/_argocd/values.yaml new file mode 100644 index 0000000..a3f642d --- /dev/null +++ b/_argocd/values.yaml @@ -0,0 +1,36 @@ +argo-cd: + server: + # configEnabled: false + # config: + # url: "https://argocd.fox.k8s.vxm.cz/" + # dex.config: | + # connectors: + # - type: gitlab + # id: gitlab + # name: GitLab + # config: + # baseURL: https://gitlab.mareshq.com + # clientID: e699c44be6e14f5d9385b84c022d9a7a08196f374173aaa9ad19b2d20a563050 + # clientSecret: 953b3dd97b2b1d1a71dbec2c0204774bd0f1b5c94fea988ac23e795577e8c6eb + # # redirectURI is filled by ArgoCD + # # redirectURI: https://argocd.ant.k8s.vxm.cz/api/dex/callback + # groups: + # - infrastructure/mareshq + # # flag which will switch from using the internal GitLab id to the users handle (@mention) as the user id. + # # It is possible for a user to change their own user name but it is very rare for them to do so + # useLoginAsID: false + ingress: + enabled: false + hosts: + - argocd.bee.k8s.vxm.cz + ingressClassName: nginx + annotations: + cert-manager.io/cluster-issuer: letsencrypt-prod + kubernetes.io/tls-acme: "true" + nginx.ingress.kubernetes.io/server-snippet: | + proxy_ssl_verify off; + nginx.ingress.kubernetes.io/backend-protocol: "HTTPS" + tls: + - hosts: + - argocd.bee.k8s.vxm.cz + secretName: argocd-tls