Changed argocd path routing to domain

This commit is contained in:
Richard Robert Reitz 2025-03-10 20:55:54 +01:00
parent 303d7b3a7e
commit e17321de52
3 changed files with 5 additions and 8 deletions

View file

@ -4,7 +4,6 @@ global:
configs:
params:
server.insecure: true
server.basehref: /argocd
cm:
application.resourceTrackingMethod: annotation
timeout.reconciliation: 60s

View file

@ -4,8 +4,6 @@ metadata:
annotations:
nginx.ingress.kubernetes.io/backend-protocol: HTTP
nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/use-regex: "true"
{{{ if eq .Env.CLUSTER_TYPE "osc" }}}
dns.gardener.cloud/class: garden
dns.gardener.cloud/dnsnames: {{{ .Env.DOMAIN }}}
@ -16,7 +14,7 @@ metadata:
spec:
ingressClassName: nginx
rules:
- host: {{{ .Env.DOMAIN }}}
- host: {{{ .Env.DOMAIN_ARGOCD }}}
http:
paths:
- backend:
@ -24,9 +22,9 @@ spec:
name: argocd-server
port:
number: 80
path: /argocd(/|$)(.*)
pathType: ImplementationSpecific
path: /
pathType: Prefix
tls:
- hosts:
- {{{ .Env.DOMAIN }}}
- {{{ .Env.DOMAIN_ARGOCD }}}
secretName: argocd-net-tls

View file

@ -182,7 +182,7 @@ data:
- type: 'config'
instances:
- name: in-cluster
url: https://{{{ .Env.DOMAIN }}}:443/argocd
url: https://{{{ .Env.DOMAIN_ARGOCD }}}:443
username: admin
password: ${ARGOCD_ADMIN_PASSWORD}
argoWorkflows: