install minikube in China

As we all known it is very difficult to set up minikube for China developer just as it is impossible for our Chinese to access google.com or youtube.com. So I pull the code from https://github.com/AliyunContainerService/minikube then checkout aliyun-v0.27.0 and build minikube from source code here is how I do it.

Pull source code by

git clone https://github.com/AliyunContainerService/minikube

Checkout aliyun-v0.27.0 and install golang then switch to root user and run export GOPATH finally goto the source code and type make

sudo apt install golang
sudo -i
mkdir /home/android/minikube/src
mkdir /home/android/minikube/src/k8s.io
mv minukube /home/android/minikube/src/k8s.io/
export GOPATH=/home/android/minikube
cd /home/android/minikube/src/k8s.io/minikube
git checkout aliyun-v0.27.0
make
cp out/minikube /usr/local/bin/
chmod a+x/usr/local/bin/minikube
apt install virtualbox

Run minikube locally by

minikube start --vm-driver=virtualbox --registry-mirror=https://registry.docker-cn.com

Download 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

launch minikube dashboard

minikube dashboard

Then your default browser will opened automatically and the url is http://192.168.99.100:30000/#!/overview?namespace=default

本博客若无特殊说明则由 full-stack-trip 原创发布
转载请点名出处:全栈之旅 > install minikube in China
本文地址:https://www.kpromise.top/install-minikube-in-china/

发表评论

电子邮件地址不会被公开。 必填项已用*标注