This can be solved by various ways, I suggest better go for kubectl describe pod podname
name, you now might see the cause of why the service that you’ve been trying is failing. In my case, I’ve found that some of my key-values were missing from the configmap while doing the deployment.