Kubernetes: The proxy server is refusing connections

11/29/2018

I have started with kubernetes and followed this link to get the response as they mentioned. I followed the exact steps but when I am trying to open the port I get the following error:

enter image description here

How to solve this issue? I have tried by adding the IP address and port in the Browser proxy.

Can anyone help me on this?

Here is the service image: my service image

List of pods: Kubectl Pods

List of kubectl deployments:Deployment List

-- Kishan Jr
kubectl
kubernetes
minikube

1 Answer

11/29/2018

I believe you're using the baremetal(simple laptop) to deploy your service.

If you have look at my-service it is in pending state and it is of type LoadBalancer. The type load balance is supported only for the cloud providers like aws,azure and google cloud. Hence you are not able to access anything.

I will suggest you to follow this tutorial here which allow you to deploy nginx as a pod and deploy a service around that and export that service as nodeport (without load balancer) to be able to access from outside.

-- Prafull Ladha
Source: StackOverflow