mascai
mascai

Reputation: 1872

Unable to connect to the server: dial tcp 192.168.64.3:8443: i/o timeout

I want to run k8s cluster locally with help of mimikube. My instruments

MacOS 14.7.3
minikube v1.30.1 on Darwin 14.7.3
kubectl version --client   --- Kustomize Version: v4.5.7

My actios

# Started minikube (looks fine)
minikube start
šŸ˜„  minikube v1.30.1 on Darwin 14.7.3
šŸŽ‰  minikube 1.35.0 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.35.0
šŸ’”  To disable this notice, run: 'minikube config set WantUpdateNotification false'

āœØ  Using the hyperkit driver based on existing profile
šŸ‘  Starting control plane node minikube in cluster minikube
šŸ”„  Restarting existing hyperkit VM for "minikube" ...


# run kubectl
kubectl apply -f pod.yaml
Unable to connect to the server: dial tcp 192.168.64.3:8443: i/o timeout

pod.yaml

apiVersion: v1
kind: Pod
metadata:
  name: test-pod
  labels:
    app: test-app
spec:
  containers:
  - name: nginx
    image: nginx:latest
    ports:
    - containerPort: 80 

How to fix the error?

Upvotes: 0

Views: 44

Answers (1)

ralphyjade
ralphyjade

Reputation: 197

To fix the error, verify kubectl configuration to see if kubectl is correctly configured to access your cluster using:

kubectl cluster-info dump

Upvotes: 1

Related Questions