阿里云minikube地址:https://github.com/AliyunContainerService/minikube
阿里云minikube網(wǎng)站:https://developer.aliyun.com/article/221687
安裝之前需要安裝docker,可以參考我的另一篇文章:搭建docker環(huán)境
安裝k8s
apt-get update
apt-get install -y apt-transport-https
curl https://mirrors.aliyun.com/kubernetes/apt/doc/apt-key.gpg | apt-key add -
cat <<EOF >/etc/apt/sources.list.d/kubernetes.list
deb https://mirrors.aliyun.com/kubernetes/apt/ kubernetes-xenial main
EOF
apt-get update
apt-get install -y kubelet kubeadm kubectl
安裝Minikube
您可以參考 https://minikube.sigs.k8s.io/docs/start/ 安裝配置店量,下面提供了阿里云團(tuán)隊(duì)構(gòu)建的版本
curl -Lo minikube https://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v1.12.1/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/
啟動(dòng)
minikube start