Unable to connect to the server: dial tcp 127.0.0.1:61259: connectex: No connection could be made because the target machine actively refused it.
kubectl error: Unable to connect to the server |
Issue:
When I'm running the kubectl commands its showing an above error, even if when I'm executing kubectl get namespace, same error I'm getting.
Additional details of my setup
- Operation System: Window 10
- Docket: Docker Desktop Version 4.25.2
- Minikube: 1.32.0
Solution:
- Docker Desktop: Start Docker Desktop Application
- PowerShell: Run as Administrator
- Execute Below command
minikube deleteminikube start
I hope this topic gave you all the information you needed. If you have any further questions or would like more detailed directions feel free to contact us using any of the following sources.We look forward to talking to you.