解決Minikube start卡住的方法

安裝與問題

 

在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 install minikube

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章