Good news: The DNS fix worked! No more DNS timeout errors. Bad news: Now getting 502 errors for a different reason.
The 502 without DNS errors means nginx can resolve the hostname but can't connect to the enterprise backend. Let's debug:
kubectl get pods -n argocd -l app.kubernetes.io/name=cased-cdExpected: Both cased-cd-* and cased-cd-enterprise-* should be Running and Ready (1/1)
kubectl logs -n argocd deployment/cased-cd-enterprise --tail=50Looking for:
- Startup errors
- Crash loops
- Port binding issues
- Any error messages
kubectl get svc -n argocd | grep cased-cdExpected: Should see both services:
cased-cd(port 80)cased-cd-enterprise(port 8081)
kubectl get endpoints -n argocd cased-cd-enterpriseExpected: Should show the pod IP and port 8081
Problem if: Shows <none> - means service selector doesn't match pod labels
kubectl logs -n argocd deployment/cased-cd --tail=50Looking for:
- Connection refused errors to enterprise backend
- Any proxy errors
# Port forward directly to enterprise pod
kubectl port-forward -n argocd deployment/cased-cd-enterprise 8081:8081 &
# Test the health endpoint
curl http://localhost:8081/health
# Kill the port forward
pkill -f "port-forward.*8081"Expected: Should return health check response Problem if: Connection refused or timeout
kubectl describe pod -n argocd -l app.kubernetes.io/component=enterpriseLooking for:
- ImagePullBackOff
- CrashLoopBackOff
- Failed to pull image errors
- Readiness probe failures
- ImagePullBackOff: Wrong registry credentials or image doesn't exist
- CrashLoopBackOff: Enterprise pod keeps crashing (check logs in Step 2)
- Service selector mismatch: Service can't find the pod (check Step 4)
- Readiness probe failing: Pod exists but not passing health checks
Copy/paste all the outputs so we can see what's happening.