我们使用Gitlab CI/CD进行构建过程。最近,我们开始遇到错误消息:
ERROR: Job failed (system failure): prepare environment: image pull failed: rpc error: code = Unknown desc = Error response from daemon: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit. Check https://docs.gitlab.com/runner/shells/index.html#shell-profile-loading for more information对于跑步者来说,添加FF_GITLAB_REGISTRY_HELPER_IMAGE似乎是Gitlab recommends的config.toml。我使用Gitlab的CI/CD通过AWS在EKS上自动部署。因此,我无法访问设置的可配置运行器。我尝试添加:
FEATURE_FLAG_NAME: 1
FF_GITLAB_REGISTRY_HELPER_IMAGE: 1设置为gitlab-ci.yml,但无效。
我正在考虑使用here讨论的依赖项代理,但它似乎没有太多效果。
问题:
如何让gitlab的自动部署在EKS部署中使用gitlab runner辅助镜像?
如何将gitlab-ci.yml配置为使用docker令牌来拉取图像?
发布于 2021-04-01 18:49:39
在.gitlab-ci.yml文件中设置为全局变量,如下所示。
variables:
FF_GITLAB_REGISTRY_HELPER_IMAGE: "true"这应该行得通。
您可以在https://docs.gitlab.com/ee/ci/variables/#custom-cicd-variables中查找gitlab-ci变量。
https://stackoverflow.com/questions/66568169
复制相似问题