使用minikube做最低配置部署时,记得使用Mac,Homebrew是真的香
在minikube加载插件时,遇到第一个问题,ingress插件的镜像是gcr域名的,被墙。
在docker中配置镜像源,无效。
方案一
使用docker pull下载阿里云仓库的镜像 再用docker tag改名。
minikube addons enable ingress命令还是自己去gcr下载。
无效
方案二
使用helm镜像管理。
首先换源,阿里云的源全一点。
helm search ingress
helm install xxingress
成功加载ingress插件
使用skaffold自动下载镜像失败
方案一
翻墙。一般配置翻墙配置对于docker pull是无效的,因为systemd引导启动的service默认不会读取这些变量,所以我们可以通过在service文件中加入环境变量解决:
修改systemd service文件
docker service文件 /usr/lib/systemd/system/docker.service:
[Service]
Environment="HTTP_PROXY=http://proxy.example.com:80/" "HTTPS_PROXY=http://proxy.example.com:80/""NO_PROXY=localhost,127.0.0.1,docker-registry.somecorporation.com"
其中NO_PROXY变量指的是那些http请求不走代理。
重启docker生效
方案二
使用阿里云代为下载
再用docker tag改名