当kubesphere自带的镜像地址不能获取镜像时,就需要用自建的镜像仓库地址或阿里镜像仓库地址。
一 阿里云镜像仓库地址配置
(有自建仓库的在kubesphere配置就可以,有企业的也可以选企业实例)
二 获取镜像并上传到阿里云
$ docker login --username=自个账户名 registry.cn-hangzhou.aliyuncs.com
$ docker pull mysql:5.6 拉取镜像
$ docker tag [ImageId] registry.cn-hangzhou.aliyuncs.com/docker-tt/mysql:[镜像版本号]
$ docker push registry.cn-hangzhou.aliyuncs.com/docker-tt/mysql:[镜像版本号]
三 kubesphere自定义镜像仓库配置