安装与问题
在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