【发布时间】:2020-05-22 10:42:45
【问题描述】:
我在 GKE 上运行 Jenkins 并且在运行作业时遇到问题 - 它无法为从站下载图像 - 任何人都遇到过类似的问题 - 无论我在 GCP 上使用私有容器注册表还是官方 jenkins/jnlp-slave 图像都会发生这种情况
jenkins-agent-dz3kg 0/1 ErrImagePull 0 66s x.x.x.x gke-x-default-pool-xxxxx-x <none> <none>
jenkins-agent-dz3kg 0/1 ImagePullBackOff 0 73s x.x.x.x gke-x-default-pool-xxxxx-x <none> <none>
jenkins helm 的 values 文件非常简单
agent:
image: "gcr.io/my-image"
tag: "latest"
podName: "jenkins-agent"
TTYEnabled: true
resources:
requests:
cpu: "1"
memory: "1Gi"
limits:
cpu: "4"
memory: "4Gi"
jenkins 安装了 helm 2.13.1 和上面的配置
helm install stable/jenkins --name jenkins -f jenkins.yaml
并显示图像在那里
$ gcloud container images list
NAME
gcr.io/my-project/my-image
詹金斯需要一些特殊的许可吗?
【问题讨论】:
标签: jenkins kubernetes google-cloud-platform