Environment:
- Kodekloud Kubernetes playground
- ArgoCD installed with default ClusterIP service
- All pods running (1/1 ready)
Initial Setup:
- Default ArgoCD installation creates ClusterIP service
- Service listens on ports 80/TCP and 443/TCP
- Not directly accessible from outside cluster
Issue:
Changed service to NodePort (80:31326/TCP, 443:30093/TCP) to access
via Kodekloud’s View Port feature, but accessing
https://30093-port-xxx.labs.kodekloud.com/ returns “Page Not Found”
Verification:
- kubectl get pods -n argocd → All Running
- kubectl get svc argocd-server -n argocd → NodePort configured
- kubectl get endpoints argocd-server -n argocd → Shows endpoint
- curl locally to pod IP → Returns HTTP redirect
Hi @monasser112
Try setting the NodePort to 32766 for the ArgoCD Server Service and see if it helps.
Hello @Santosh_KodeKloud … could you tell me why 32766 particularly ?
You need to connect to whatever node port you exposed for the ArgoCD nodeport service.
You have done the right thing to expose it as nodePort instead of LoadBalancer.
Also depends which kubernetes playground you installed it on. If it is one where the cluster controlplane is running on the node the lab starts on, then it is just a case of viewing the correct nodeport - looks like 31326 from what you put above…
If it’s one of the playgrounds where the whole cluster runs on other nodes like the multi-cluster playground (i.e you have to ssh even to control plane), then there is a bit more work to do.