本文参考 http://docs.kubernetes.org.cn/109.html
安装 VirtualBox
Mac 下安装
下载 https://mirrors.tuna.tsinghua.edu.cn/virtualbox/6.0.10/VirtualBox-6.0.10-132072-OSX.dmg
双击运行
CentOS 下安装
cat <<EOF >/etc/yum.repos.d/virtualbox.repo
[virtualbox]
name=Virtualbox Repository
baseurl=https://mirrors.tuna.tsinghua.edu.cn/virtualbox/rpm/el7/
gpgcheck=0
enabled=1
EOF
yum update -y
yum install -y VirtualBox-6.0
wget https://mirrors.tuna.tsinghua.edu.cn/virtualbox/6.0.10/Oracle_VM_VirtualBox_Extension_Pack-6.0.10.vbox-extpac�k
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-6.0.10.vbox-extpack
安装 kubeadm
, kubectl
CentOS下安装
cat <<EOF > /etc/yum.repos.d/kubernetes.repo
[kubernetes]
name=Kubernetes
baseurl=https://mirrors.aliyun.com/kubernetes/yum/repos/kubernetes-el7-x86_64/
enabled=1
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://mirrors.aliyun.com/kubernetes/yum/doc/yum-key.gpg https://mirrors.aliyun.com/kubernetes/yum/doc/rpm-package-key.gpg
EOF
setenforce 0
yum install -y s kubeadm kubectl
安装 minikube
Mac 下安装
sudo su -
curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.24.1/minikube-darwin-amd64
chmod +x minikube && sudo mv minikube /usr/local/bin/
CentOS下安装
sudo su -
curl -Lo minikube http://kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/releases/v0.24.1/minikube-linux-amd64
chattr -ai minikube
chmod +x minikube && sudo mv minikube /usr/local/bin/
启动 kuminikubeminikubeectl
sudo minikube start
网友评论