From d80d5c51b223a79a5b0387e73acbabffccd84dc4 Mon Sep 17 00:00:00 2001 From: Sujeet Agrahari Date: Tue, 20 Feb 2024 14:27:01 +0530 Subject: [PATCH] make argocd to run behind /argocd --- deploy/install.sh | 11 ++++++++++- kubernetes/kong/argocd-ingress.yaml | 20 ++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 kubernetes/kong/argocd-ingress.yaml diff --git a/deploy/install.sh b/deploy/install.sh index 198d42e..05e2726 100644 --- a/deploy/install.sh +++ b/deploy/install.sh @@ -4,4 +4,13 @@ kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/st kubectl port-forward svc/argocd-server 8003:443 -n argocd -kubectl get secrets -n argocd argocd-initial-admin-secret -o yaml +kubectl get secrets -n argocd argocd-initial-admin-secret -o yaml q + + +# to serve on http you need add toplevel +# data: +# server.insecure: true + +# in config map kubectl describe configmaps argocd-cmd-params-cm -n argocd + +# also update server.rootpath: /argocd \ No newline at end of file diff --git a/kubernetes/kong/argocd-ingress.yaml b/kubernetes/kong/argocd-ingress.yaml new file mode 100644 index 0000000..00b2d28 --- /dev/null +++ b/kubernetes/kong/argocd-ingress.yaml @@ -0,0 +1,20 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: argocd-ingress + namespace: argocd + annotations: + kubernetes.io/ingress.class: 'kong' + konghq.com/strip-path: 'false' +spec: + rules: + - host: localhost + http: + paths: + - path: /argocd + pathType: Prefix + backend: + service: + name: argocd-server + port: + number: 80