From c1305ea2c51a179ca93dc8da1a414f97fd250594 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Sun, 14 Jul 2024 18:59:54 +1000 Subject: [PATCH] add app argocd kustomization --- apps/argocd/base/kustomization.yaml | 10 ++++ apps/argocd/base/values.yaml | 49 +++++++++++++++++++ .../argocd/env/k3s-cluster/kustomization.yaml | 5 ++ apps/argocd/env/k3s-cluster/values.yaml | 49 +++++++++++++++++++ 4 files changed, 113 insertions(+) create mode 100644 apps/argocd/base/kustomization.yaml create mode 100644 apps/argocd/base/values.yaml create mode 100644 apps/argocd/env/k3s-cluster/kustomization.yaml create mode 100644 apps/argocd/env/k3s-cluster/values.yaml diff --git a/apps/argocd/base/kustomization.yaml b/apps/argocd/base/kustomization.yaml new file mode 100644 index 0000000..0182875 --- /dev/null +++ b/apps/argocd/base/kustomization.yaml @@ -0,0 +1,10 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +helmCharts: + - name: argo-cd + repo: oci://ghcr.io/argoproj/argo-helm + version: 7.3.6 + releaseName: argocd +# apiVersions: +# - monitoring.coreos.com/v1 + valuesFile: values.yaml \ No newline at end of file diff --git a/apps/argocd/base/values.yaml b/apps/argocd/base/values.yaml new file mode 100644 index 0000000..8225d55 --- /dev/null +++ b/apps/argocd/base/values.yaml @@ -0,0 +1,49 @@ +global: + domain: argocd.cluster.edward.sydney + +configs: + params: + server.insecure: true + +controller: + replicas: 1 + +redis-ha: + enabled: true + +server: + serviceType: NodePort + httpNodePort: 30080 + httpsNodePort: 30443 + autoscaling: + enabled: true + minReplicas: 2 + ingress: + enabled: true + annotations: + nginx.ingress.kubernetes.io/force-ssl-redirect: "true" + nginx.ingress.kubernetes.io/ssl-passthrough: "true" +# nginx.ingress.kubernetes.io/ssl-redirect: "false" +# nginx.ingress.kubernetes.io/use-regex: "true" + ingressClassName: nginx + hostname: argocd.cluster.edward.sydney + extraTls: + - hosts: + - argocd.cluster.edward.sydney + # Based on the ingress controller used secret might be optional + secretName: wildcard-tls + ingressGrpc: + enabled: true + ingressClassName: contour-internal + extraTls: + - hosts: + - grpc.argocd.cluster.edward.sydney + secretName: wildcard-tls + +repoServer: + autoscaling: + enabled: true + minReplicas: 2 + +applicationSet: + replicas: 2 \ No newline at end of file diff --git a/apps/argocd/env/k3s-cluster/kustomization.yaml b/apps/argocd/env/k3s-cluster/kustomization.yaml new file mode 100644 index 0000000..681848f --- /dev/null +++ b/apps/argocd/env/k3s-cluster/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization + +resources: + - ../../base \ No newline at end of file diff --git a/apps/argocd/env/k3s-cluster/values.yaml b/apps/argocd/env/k3s-cluster/values.yaml new file mode 100644 index 0000000..3ea96bf --- /dev/null +++ b/apps/argocd/env/k3s-cluster/values.yaml @@ -0,0 +1,49 @@ +global: + domain: argocd.cluster.edward.sydney + +configs: + params: + server.insecure: true + +controller: + replicas: 1 + +redis-ha: + enabled: true + +server: + serviceType: NodePort + httpNodePort: 30080 + httpsNodePort: 30443 + autoscaling: + enabled: true + minReplicas: 2 +# ingress: +# enabled: true +# annotations: +# nginx.ingress.kubernetes.io/force-ssl-redirect: "true" +# nginx.ingress.kubernetes.io/ssl-passthrough: "true" +# nginx.ingress.kubernetes.io/ssl-redirect: "false" +# nginx.ingress.kubernetes.io/use-regex: "true" + ingressClassName: nginx + hostname: argocd.cluster.edward.sydney + extraTls: + - hosts: + - argocd.cluster.edward.sydney + # Based on the ingress controller used secret might be optional + secretName: wildcard-tls + ingressGrpc: + enabled: true + ingressClassName: contour-internal + extraTls: + - hosts: + - grpc.argocd.cluster.edward.sydney + secretName: wildcard-tls + +repoServer: + autoscaling: + enabled: true + minReplicas: 2 + +applicationSet: + replicas: 2 \ No newline at end of file