- minikube tuna國內(nèi)安裝
# mac m1
curl -LO https://mirrors.tuna.tsinghua.edu.cn/github-release/kubernetes/minikube/LatestRelease/minikube-darwin-arm64
sudo install minikube-darwin-arm64 /usr/local/bin/minikube
- minikube start 加速-阿里云
minikube start --image-mirror-country='cn'
minikube start --image-mirror-country='cn' \
--kubernetes-version=v1.20.2
提示需要登錄:
登錄阿里云后臺->容器鏡像服務(wù)-> 實例列表 -> 個人實例-> 訪問憑證
docker login --username=180****1264@139.com registry.cn-hangzhou.aliyuncs.com/google_containers
- 使用端口轉(zhuǎn)發(fā)來訪問集群中的應(yīng)用
kubectl port-forward pods/redis-master-765d459796-258hz 7000:6379 --address 0.0.0.0
kubectl port-forward deployment/redis-master 7000:6379 --address 0.0.0.0
kubectl port-forward rs/redis-master 7000:6379 --address 0.0.0.0
kubectl port-forward svc/redis-master 7000:redis --address 0.0.0.0
minikube service httpbin-service-test --url -n ingress-apisix
# 使用address 指定綁定的ip為0.0.0.0史简,必要的時候注意指定namespace
kubectl port-forward --address 0.0.0.0
網(wǎng)絡(luò)問題
https://developer.aliyun.com/article/759310http_proxy
export HTTP_PROXY=http://172.17.0.1:3128
export HTTPS_PROXY=$HTTP_PROXY