安裝與問題
在mac上安裝minikube對k8s進行學習,根據官方Quick Start
brew cask install minikube
就可以完成minikube的安裝
在安裝前需要安裝virtual box 或者VM ware fusion(未測試)
然后執行
minikube start
然而我的minikube卡在了starting cluster components處
問題解決
這可能是0.28.2版本的原因,將其降級即可
首先停止minikube 將其刪除
minikube stop
minikube delete
brew cask uninstall --force minikube
然后修改minikube的信息
brew cask edit minikube
修改為下面文件
cask 'minikube' do
version '0.25.2'
sha256 'dc5b00c4a06e8160bd607732c9a2294598d803716e353293b4463cc2c9539eec'
# storage.googleapis.com/minikube was verified as official when first introduced to the cask
url "https://storage.googleapis.com/minikube/releases/v#{version}/minikube-darwin-amd64"
appcast 'https://github.com/kubernetes/minikube/releases.atom',
checkpoint: 'dc5b00c4a06e8160bd607732c9a2294598d803716e353293b4463cc2c9539eec'
name 'Minikube'
homepage 'https://github.com/kubernetes/minikube'
depends_on formula: 'kubernetes-cli'
container type: :naked
binary 'minikube-darwin-amd64', target: 'minikube'
zap trash: '~/.minikube'
end
然后
brew cask insatll minikube