0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Minikube v1.3.0 on Mac

Posted at

はじめに

Kubernetes(aka k8s)を少し勉強しようと思い、MacでMinikubeを使おうと思ったらハマったので解決方法を記録しておきます。

動作確認環境

OS:macOS Mojave Version 10.14.6 (18G84)

1. 失敗したケース (xhyveを使用)

~ tworks55$ brew install kubectl
~ tworks55$ brew cask install minikube
~ tworks55$ brew install docker-machine-driver-xhyve
~ tworks55$ sudo chown root:wheel $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve
~ tworks55$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-xhyve/bin/docker-machine-driver-xhyve

~ tworks55$ minikube start --vm-driver=xhyve
😄  minikube v1.3.0 on Darwin 10.14.6
💣  The driver 'xhyve' is not supported on darwin

xhyveではダメのようなので別のVMに変更

2. 成功したケース(hyperkitを使用)

hyperkitを使うとうまく起動しました。

~ tworks55$ brew install hyperkit
~ tworks55$ brew install docker-machine-driver-hyperkit
~ tworks55$ ls -l /usr/local/opt/docker-machine-driver-hyperkit/bin/
~ tworks55$ sudo chmod u+s $(brew --prefix)/opt/docker-machine-driver-hyperkit/bin/docker-machine-driver-hyperkit
~ tworks55$ minikube start --vm-driver=hyperkit
😄  minikube v1.3.0 on Darwin 10.14.6
🔥  Creating hyperkit VM (CPUs=2, Memory=2000MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.15.2 on Docker 18.09.8 ...
💾  Downloading kubeadm v1.15.2
💾  Downloading kubelet v1.15.2
🚜  Pulling images ...
🚀  Launching Kubernetes ... 
⌛  Waiting for: apiserver proxy etcd scheduler controller dns
🏄  Done! kubectl is now configured to use "minikube"

参考URL

https://gist.github.com/inadarei/7c4f4340d65b0cc90d42d6382fb63130

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?