Refer to the address

  • Developer.aliyun.com/article/221…

Install the docker

  • Use Ali Cloud installation
    • curl -fsSL get.docker.com | bash -s docker –mirror Aliyun
  • Image acceleration: Use Ali Cloud image acceleration
sudo mkdir -p /etc/docker
sudo tee /etc/docker/daemon.json <<-'EOF'
{
  "registry-mirrors": ["https://xxx.mirror.aliyuncs.com"]
}
EOF
sudo systemctl daemon-reload
sudo systemctl restart docker
Copy the code

Install kubectl

  • Due to the slow foreign visit, I can not visit. Visit the source of THE University of Science and Technology
    • Mirrors.ustc.edu.cn/kubernetes/…
  • download
    • Wget mirrors.ustc.edu.cn/kubernetes/…
  • The installation
    • To install deb’s package, install Alien first
      • yum install alien -y
    • Then convert the test package to RPM format using the alien command.
      • Alien – R software name
    • mandatory
      • RPM -ivh –nodeps –force File name. RPM

Install Minikube

  • The installation
    • download
      • The curl – Lo minikube kubernetes.oss-cn-hangzhou.aliyuncs.com/minikube/re… && chmod +x minikube && sudo mv minikube /usr/local/bin/
    • Start:
      • minikube start –driver=docker
        • The “docker” driver should not be used with root privileges
          • useradd xxxx
          • sudo usermod -aG docker xxxx
          • su xxxx
          • Minikube start –driver=docker
        • Kubectl get PODs-a

Enable the dashboard

  • local
    • minikube dashboard
  • Remote server
    • Kubectl proxy –port=41408 –address=’0.0.0.0′ –accept-hosts=’^.*’
  • access
    • http://ip:41408/api/v1/namespaces/kubernetes-dashboard/services/http:kubernetes-dashboard:/proxy/#/clusterrolebinding/ku beadm:get-nodes?namespace=kube-node-lease