下载deploy.yaml
wget https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml
下载image
这里的image 都在k8s.grc.ip,国内下载会失败
使用阿里云的镜像服务,镜像仓库绑定github里的仓库
github 内容示例
设置构建规则,这里一个分支对应一个镜像
在机器上下载image
certgen 是版本号
docker pull registry.cn-hangzhou.aliyuncs.com/chengdou/centos-2:certgen
重命名
docker tag registry.cn-hangzhou.aliyuncs.com/chengdou/c