Blank page when accessing Argo CD behind Gateway API on a subpath (/argo) with server.basehref and server.rootpath #3920
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Environment
Argo CD version: v3.4.1
Helm chart: argo-helm argo-cd-8.0.0
Kubernetes: AKS
Gateway: NGINX Gateway Fabric (Gateway API HTTPRoute)
Authentication: Tested with both:
Local admin login only (admin.enabled=true, Dex/OIDC disabled).
Microsoft Entra ID OIDC SSO enabled.
The issue occurs in both scenarios.
Problem
I am deploying Argo CD behind a Gateway API HTTPRoute under a subpath:
https:///argo/
The backend API endpoints are reachable and return valid responses, but the UI consistently renders a blank page.
Configuration
Helm values
server:
extraArgs:
- --rootpath=/argo
- --basehref=/argo/
service:
type: ClusterIP
configs:
cm:
"admin.enabled": "true"
url: ".com/argo/"
params:
"server.basehref": "/argo/"
"server.rootpath": "/argo"
"server.insecure": "true"
HTTPRoute
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: argocd-argocd
namespace: ch-ns-dev-argocd
labels:
app.kubernetes.io/name: argocd
app.kubernetes.io/part-of: argocd
spec:
parentRefs:
- name: gateway-platform
namespace: nginx-gateway
sectionName: https
hostnames:
- .com
rules:
- matches:
- path:
type: PathPrefix
value: /argo
filters:
- type: URLRewrite
urlRewrite:
path:
type: ReplacePrefixMatch
replacePrefixMatch: /argo
backendRefs:
- name: argocd-server
namespace: ch-ns-dev-argocd
port: 80
I have tested both:
Gateway API URL rewrite disabled.
Gateway API URL rewrite enabled (ReplacePrefixMatch: "/", i.e. /argo -> /).
Verification
argocd-cmd-params-cm
The generated ConfigMap contains:
server.basehref: /argo/
server.rootpath: /argo
server.insecure: "true"
Deployment
The argocd-server deployment receives:
ARGOCD_SERVER_BASEHREF
ARGOCD_SERVER_ROOTPATH
ARGOCD_SERVER_INSECURE
via environment variables.
Browser behavior
UI renders a blank page.
Browser developer console shows JavaScript errors.
Issue persists after clearing cache.
Issue persists in Incognito mode and a completely fresh browser profile.
Troubleshooting already performed
I have tested all of the following combinations:
server.basehref enabled/disabled.
server.rootpath enabled/disabled.
server.extraArgs vs only using configs.params.
Gateway API URL rewrite enabled and disabled.
Local admin authentication only.
Microsoft Entra ID OIDC SSO enabled.
server.basehref and server.rootpath with and without trailing slashes:
/argo
/argo/
url configured as:
https:///argo
https:///argo/
The behavior remains the same.
Question
Is expected behavior in Argo CD v3.4.1 even when server.basehref=/argo/ is configured?
Is there a recommended or known working configuration for deploying Argo CD v3.4.1 (argo-helm 8.0.0) behind NGINX Gateway Fabric / Gateway API under a non-root path such as /argo?
Has anyone successfully deployed this combination using:
server.basehref
server.rootpath
Gateway API URLRewrite (ReplacePrefixMatch)
OIDC/SSO
or is there a known regression/bug affecting subpath deployments in this version?
Beta Was this translation helpful? Give feedback.
All reactions