ict.ken.be

Delivering solid user friendly software solutions since the dawn of time.

Kubernetes - Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

Categories: Docker Kubernetes

When using Docker Desktop it comes with an out of the box Kubernetes cluster.

However you might run into 

Unable to connect to the server: dial tcp [::1]:8080: connectex: No connection could be made because the target machine actively refused it.

when trying to run your first 'kubectl create -f some-pod-definition.yaml' command.

And that's just because you forgot to enable it: Setting > Kubernetes > Enable Kubernetes