安装之前需要在bios中开启虚拟化功能。这里是在vmvare虚拟机中安装。开启步骤如下:

image

下载virtualbox

官网地址:https://www.virtualbox.org/

image

image

[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

转载于:https://www.cnblogs.com/LC161616/p/9192329.html

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐