一遍过,Contos 7下Minikube安装k8s练习环境

Centos使用Minikube安装k8s实验环境

Created: May 08, 2020 9:54 AM

0x01.软件版本

  • Kubernetes: v1.18.1
  • Minikube: v1.10.0
  • Docker: v1.13.1-161

0x02.安装docker

  • sudo yum update
  • sudo yum install docker
  • sudo systemctl start docker
  • sudo systemctl enable docker
  • 添加docker组,将当前用户加入该组

    • sudo groupadd docker
    • sudo usermod -aG docker ${USER}
    • sudo systemctl restart docker
    • su root //需要切换下用户,生效配置
    • su ${USER}

0x03.安装kubectl

Install and Set Up kubectl

根据文档配置安装,版本:v1.18.1

0x04.安装minikube

Install minikube-linux-arm64

curl -Lo minikube https://github.com/kubernetes/minikube/releases/download/v1.10.0/minikube-linux-amd64 && chmod +x minikube && sudo mv minikube /usr/local/bin/

0x05.初始化minikube

minikube start --registry-mirror=https://registry.docker-cn.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --vm-driver=docker --alsologtostderr -v=8 --base-image registry.cn-hangzhou.aliyuncs.com/google_containers/kicbase:v0.0.10

因为k8s依赖很多被墙了,--base-image该参数指定依赖下载国内镜像地址

# 开启web可视化界面,内网
minikube dashboard

你可能感兴趣的:(kubernetes,cloud-native,后端)