From 3fa637c13ef5b06b42a66bcdd6c9a9fcf3a1429a Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Mon, 5 Aug 2024 21:57:14 -0500 Subject: [PATCH] Add ArgoCD --- clusters/my-cluster/argocd/kustomization.yaml | 48 +++++++++++++++++++ clusters/my-cluster/argocd/namespace.yaml | 5 ++ 2 files changed, 53 insertions(+) create mode 100644 clusters/my-cluster/argocd/kustomization.yaml create mode 100644 clusters/my-cluster/argocd/namespace.yaml diff --git a/clusters/my-cluster/argocd/kustomization.yaml b/clusters/my-cluster/argocd/kustomization.yaml new file mode 100644 index 0000000..5b9dbe4 --- /dev/null +++ b/clusters/my-cluster/argocd/kustomization.yaml @@ -0,0 +1,48 @@ +--- +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +namespace: argocd +resources: + - namespace.yaml + - https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml +patches: + - patch: | + apiVersion: apps/v1 + kind: Deployment + metadata: + name: all + spec: + template: + spec: + containers: + - name: argocd-server + env: + - name: "HTTP_PROXY" + value: "http://proxy-lb.lab.kill0.net:3128" + - name: "HTTPS_PROXY" + value: "http://proxy-lb.lab.kill0.net:3128" + - name: "NO_PROXY" + value: ".cluster.local.,.cluster.local,.svc,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,argocd-repo-server,argocd-application-controller,argocd-metrics,argocd-server,argocd-server-metrics,argocd-redis,argocd-dex-server" + target: + kind: Deployment + labelSelector: app.kubernetes.io/name=argocd-server + - patch: | + apiVersion: apps/v1 + kind: Deployment + metadata: + name: all + spec: + template: + spec: + containers: + - name: argocd-repo-server + env: + - name: "HTTP_PROXY" + value: "http://proxy-lb.lab.kill0.net:3128" + - name: "HTTPS_PROXY" + value: "http://proxy-lb.lab.kill0.net:3128" + - name: "NO_PROXY" + value: ".cluster.local.,.cluster.local,.svc,10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,argocd-repo-server,argocd-application-controller,argocd-metrics,argocd-server,argocd-server-metrics,argocd-redis,argocd-dex-server" + target: + kind: Deployment + labelSelector: app.kubernetes.io/name=argocd-repo-server diff --git a/clusters/my-cluster/argocd/namespace.yaml b/clusters/my-cluster/argocd/namespace.yaml new file mode 100644 index 0000000..42add95 --- /dev/null +++ b/clusters/my-cluster/argocd/namespace.yaml @@ -0,0 +1,5 @@ +--- +apiVersion: v1 +kind: Namespace +metadata: + name: argocd