Checklist:
Describe the bug
After a recent change adding automountServiceAccountToken: false to the argocd-redis-ha-haproxy deployment, the ArgoCD HA cluster fails to start properly. The pods fail with an error indicating they cannot connect to the Kubernetes API because no configuration is provided.
To Reproduce
- Deploy ArgoCD in HA mode with the latest version
- Observe that
argocd-redis-ha-haproxy pods fail to start
- Check logs to see the error about invalid configuration
Expected behavior
The argocd-redis-ha-haproxy pods should start successfully as part of the HA deployment.
Screenshots
N/A
Version
# Replace with your actual ArgoCD version output
argocd version
argocd: v2.14.2+ad27246
BuildDate: 2025-02-06T02:19:55Z
GitCommit: ad2724661b66ede607db9b5bd4c3c26491f5be67
GitTreeState: clean
GoVersion: go1.23.6
Compiler: gc
Platform: darwin/arm64
Logs
{"level":"fatal","msg":"invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable","time":"2025-03-06T10:26:55Z"}
Additional context
The issue appears to be caused by the addition of automountServiceAccountToken: false to the argocd-redis-ha-haproxy deployment in this file:
https://github.com/argoproj/argo-cd/blame/5223ce546a677565a24dc37d53a360d544891ba1/manifests/ha/base/redis-ha/chart/upstream.yaml#L1104
When I remove this setting, the cluster starts properly. This suggests that the HAProxy component requires the service account token to be mounted for Kubernetes API communication.
Checklist:
argocd version.Describe the bug
After a recent change adding
automountServiceAccountToken: falseto theargocd-redis-ha-haproxydeployment, the ArgoCD HA cluster fails to start properly. The pods fail with an error indicating they cannot connect to the Kubernetes API because no configuration is provided.To Reproduce
argocd-redis-ha-haproxypods fail to startExpected behavior
The
argocd-redis-ha-haproxypods should start successfully as part of the HA deployment.Screenshots
N/A
Version
# Replace with your actual ArgoCD version output argocd version argocd: v2.14.2+ad27246 BuildDate: 2025-02-06T02:19:55Z GitCommit: ad2724661b66ede607db9b5bd4c3c26491f5be67 GitTreeState: clean GoVersion: go1.23.6 Compiler: gc Platform: darwin/arm64Logs
Additional context
The issue appears to be caused by the addition of
automountServiceAccountToken: falseto theargocd-redis-ha-haproxydeployment in this file:https://github.com/argoproj/argo-cd/blame/5223ce546a677565a24dc37d53a360d544891ba1/manifests/ha/base/redis-ha/chart/upstream.yaml#L1104
When I remove this setting, the cluster starts properly. This suggests that the HAProxy component requires the service account token to be mounted for Kubernetes API communication.