Reputation: 1872
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
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