https://github.com/kubernetes/minikube
Minikube也是需要虚拟化工具来支持的,例如VirtualBox
Mac系统上安装
依赖kubectl
heartide@mac> kubectl version
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.5", GitCommit:"32ac1c9073b132b8ba18aa830f46b77dcceb0723", GitTreeState:"clean", BuildDate:"2018-06-22T05:40:13Z", GoVersion:"go1.9.7", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-04-10T12:46:31Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"linux/amd64"}
安装minikube
# 下载
brew cask install minikube
# 查看版本
heartide@mac> minikube version
minikube version: v0.28.0
装完0.28.0之后,执行后续的minikube start总是失败,详见:https://coding.imooc.com/lear...
因此
minikube stop
minikube delete
brew cask uninstall --force minikube
brew cask edit minikube
#See below for file 使用下面的配置覆盖该文件
brew cask install 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
# 查看版本
heartide@mac> minikube version
minikube version: v0.25.2
启动minikube
minikube start
查看minikube配置
# kubectl config view
apiVersion: v1
clusters:
- cluster:
certificate-authority: /Users/heartide/.minikube/ca.crt
server: https://192.168.99.101:8443
name: minikube
contexts:
- context:
cluster: minikube
user: minikube
name: minikube
current-context: minikube
kind: Config
preferences: {}
users:
- name: minikube
user:
client-certificate: /Users/heartide/.minikube/client.crt
client-key: /Users/heartide/.minikube/client.key
查看minikube状态
heartide@mac> kubectl cluster-info
Kubernetes master is running at https://192.168.99.101:8443
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
进入minikube虚机
minikube ssh
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。