diff --git a/charts/argo-cd/templates/argocd-server-ingress.yaml b/charts/argo-cd/templates/argocd-server-ingress.yaml index d8b11266..459ce6bd 100644 --- a/charts/argo-cd/templates/argocd-server-ingress.yaml +++ b/charts/argo-cd/templates/argocd-server-ingress.yaml @@ -17,7 +17,16 @@ metadata: {{- end }} spec: rules: - {{- range .Values.ingress.hosts }} + {{- with .Values.config.url }} + - host: {{ . | quote }} + http: + paths: + - path: {{ $ingressPath }} + backend: + serviceName: argocd-server + servicePort: {{ $servicePortHttps }} + {{- end }} + {{- range .Values.ingress.additionalHosts }} - host: {{ . | quote }} http: paths: diff --git a/charts/argo-cd/values.yaml b/charts/argo-cd/values.yaml index ebd3e161..8eabbeca 100644 --- a/charts/argo-cd/values.yaml +++ b/charts/argo-cd/values.yaml @@ -64,8 +64,7 @@ ingress: # nginx.ingress.kubernetes.io/force-ssl-redirect: "true" # nginx.ingress.kubernetes.io/ssl-passthrough: "true" path: / - hosts: - - argocd.example.com + additionalHosts: [] clusterAdminAccess: enabled: true config: