huleis-mbp:~ llhu$
minikube config set vm-driver hyperv && minikube config set hyperv-virtual-switch switch-name
⚠️ These changes will take effect upon a minikube delete and then a minikube start
huleis-mbp:~ llhu$ minikube start
? minikube v1.0.0 on darwin (amd64)
? Downloading Kubernetes v1.14.0 images in the background …
? Creating hyperv VM (CPUs=2, Memory=2048MB, Disk=20000MB) …
? unsupported driver: hyperv
huleis-mbp:~ llhu$
minikube start –vm-driver hyperkit
? minikube v1.0.0 on darwin (amd64)
? Downloading Kubernetes v1.14.0 images in the background …
? Creating hyperkit VM (CPUs=2, Memory=2048MB, Disk=20000MB) …
? Downloading Minikube ISO …
142.88 MB / 142.88 MB [============================================] 100.00% 0s
? “minikube” IP address is 192.168.64.3
? Configuring Docker as the container runtime …
? Version of container runtime is 18.06.2-ce
⌛ Waiting for image downloads to complete …
✨ Preparing Kubernetes environment …
? Downloading kubeadm v1.14.0
? Downloading kubelet v1.14.0
? Pulling images required by Kubernetes v1.14.0 …
? Launching Kubernetes v1.14.0 using kubeadm …
⌛ Waiting for pods: apiserver proxy etcd scheduler controller dns
? Configuring cluster permissions …
? Verifying component health …..
? kubectl is now configured to use “minikube”
? Done! Thank you for using minikube!
测试
:
huleis-mbp:~ llhu$
kubectl get nodes
NAME STATUS AGE
minikube Ready 10m
huleis-mbp:~ llhu$
kubectl cluster-info
Kubernetes master is running at https://192.168.64.3:8443
KubeDNS is running at https://192.168.64.3:8443/api/v1/proxy/namespaces/kube-system/services/kube-dns
huleis-mbp:~ llhu$
minikube dashboard
? Enabling dashboard …
? Verifying dashboard health …
? Launching proxy …
? Verifying proxy health …
? Opening http://127.0.0.1:58187/api/v1/namespaces/kube-system/services/http:kubernetes-dashboard:/proxy/ in your default browser…
更多的minikube driver 参考 :
https://github.com/kubernetes/minikube/blob/master/docs/drivers.md#hyperv-driver