安装之前需要在bios中开启虚拟化功能。这里是在vmvare虚拟机中安装。开启步骤如下:
下载virtualbox
官网地址:https://www.virtualbox.org/
[virtualbox]
name=Oracle Linux / RHEL / CentOS-$releasever / $basearch - VirtualBox
baseurl=http://download.virtualbox.org/virtualbox/rpm/el/$releasever/$basearch
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.virtualbox.org/download/oracle_vbox.asc
更新yum源并下载
yum clean all
yum makecache
yum install VirtualBox-5.2
下载minikube
curl -Lo minikube https://storage.googleapis.com/minikube/releases/v0.7.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
下载kubectl
curl -Lo kubectl http://storage.googleapis.com/kubernetes-release/release/v1.3.0/bin/linux/amd64/kubectl && chmod +x kubectl && sudo mv kubectl /usr/local/bin/
启动minikube
minikube start
minikube start –vm-driver=virtualbox
启动中遇到的错误
minikube delete
minikube start
所有评论(0)