Kubernetes

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

Share
Published by
full-stack-trip
Tags: k8sminikube

Recent Posts

Android 自定义 View 入门

说来惭愧,工作数年,连基本的自…

4 年 ago

retrofit 同时支持 xml 和 json

retrofit 解析 jso…

4 年 ago

mysql - 存储过程 从入门到放弃

最近有个报表的需求,于是乎用了…

4 年 ago

奶嘴战略 - 你不得不知道的扎心真相(一)

一句:英雄枯骨无人问,戏子家事…

4 年 ago

acme.sh 的简单使用

acme.sh 是纯 shel…

4 年 ago

wrk -更现代化的http压测工具

wrk 是一款更现代化的 ht…

4 年 ago