Troubleshoot a Website That Is Not Accessible
by Omkar Shelke
Scenario
A Solo Leveling themed web application has been deployed in the solo-leveling namespace, but the website is not accessible.
Investigate why the website is not accessible and fix the issue so that the Solo Leveling website is reachable at:
curl http://cplane-01:30333
⏳ Wait a few seconds for the environment to fully set up. It may take up to 1 minute.
Hint
The Service has endpoints but traffic is still failing. Check what port nginx is actually listening on by inspecting the mounted ConfigMap, then update the Service targetPort and Deployment containerPort to match:
kubectl get configmap nginx-config -n solo-leveling -o jsonpath='{.data.nginx\.conf}'
See: ConfigMaps | Services | Deployments | EndpointSlices