一键部署k8s

文章目录

  • 一、一键安装docker
  • 二、一键部署k8s
  • 三、一键安装kubectl


一、一键安装docker

//安装docker
 yum -y install docker
//运行docker
systemctl start docker
//查看docker状态
 systemctl status docker
  • docker状态
    一键部署k8s_第1张图片

二、一键部署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

一键部署k8s_第2张图片

三、一键安装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

一键部署k8s_第3张图片


你可能感兴趣的:(命令,kubernets,云原生,kubernetes)