一遍過,Contos 7下Minikube安裝k8s練習環境

Centos使用Minikube安裝k8s實驗環境

Created: May 08, 2020 9:54 AMlinux

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組,將當前用戶加入該組git

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

0x03.安裝kubectl

Install and Set Up kubectlgithub

根據文檔配置安裝,版本:v1.18.1web

0x04.安裝minikube

Install minikube-linux-arm64docker

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該參數指定依賴下載國內鏡像地址bash

# 開啓web可視化界面,內網
minikube dashboard
相關文章
相關標籤/搜索