Setup Kubernetes in China
Setup Minikube
minikube start
fails on unable to access k8s.gcr.io
and etc.
Try using China mirror:
minikube start --registry-mirror=https://registry.docker-cn.com --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers --image-mirror-country='cn'
See the help document of minikube
:
minimube start --help
# Output:
# ...
# --image-mirror-country='': Country code of the image mirror to be used. Leave empty to use the global one. For
# Chinese mainland users, set it to cn.
# --image-repository='': Alternative image repository to pull docker images from. This can be used when you have
# limited access to gcr.io. Set it to "auto" to let minikube decide one for you. For Chinese mainland users, you may use
# local gcr.io mirrors such as registry.cn-hangzhou.aliyuncs.com/google_containers
# --registry-mirror=[]: Registry mirrors to pass to the Docker daemon