一键部署k8s
文章目录一、一键安装docker二、一键部署k8s三、一键安装kubectl一、一键安装docker//安装dockeryum -y install docker//运行dockersystemctl start docker//查看docker状态systemctl status dockerdocker状态二、一键部署k8s//下载minikubecurl -LO https://storag
·
一、一键安装docker
//安装docker
yum -y install docker
//运行docker
systemctl start docker
//查看docker状态
systemctl status docker
- docker状态
二、一键部署k8s
//下载minikube
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64
//安装到系统的$PATH中将minikube
sudo install minikube-linux-amd64 /usr/local/bin/minikube
//启动minikube
minikube start --force --driver=docker
三、一键安装kubectl
//下载kubectl
curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl
//提升权限
chmod +x ./kubectl
//移到PATH
sudo mv ./kubectl /usr/local/bin/kubectl
更多推荐
已为社区贡献5条内容
所有评论(0)