Issue
Exposed service or pods as NodePort and LoadBalancer as-well but application is not accessible on web/external
Common mistakes
- Trying to use the server IP:port is a blunder instead we should use node_IP:port.
Run below command to find the node IP addresses
kubectl get nodes -o wide | awk {‘print $1″ ” $2 ” ” $7’} | column -t
- Using the same pvc (Persistent Volume Claim), Check the below Resolution :
Resolution
- Created new PVC
Old file
Correct PVC name in yaml file
Update deployment file with right PVC name
Thanks for checking this post, please comment in your inputs.