我试图使用AWS EKS上的舵机图表来部署一些服务。
$ helm repo add bitnami https://charts.bitnami.com/bitnami
$ helm install postgresql --version 8.6.4 bitnami/postgresql运行helm命令后,将不会创建pod,因为到docker.io的连接在EKS中被阻塞。
$ kubectl describe po
...
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Scheduled 12m default-scheduler Successfully assigned airflow/postgresql-postgresql-0 to xxxxxx.compute.internal
Normal SuccessfulAttachVolume 12m attachdetach-controller AttachVolume.Attach succeeded for volume "pvc-e3e438ef-50a4-4c19-a788-3d3755b89bae"
Normal Pulling 9m50s (x4 over 12m) kubelet Pulling image "docker.io/bitnami/postgresql:11.7.0-debian-10-r26"
Warning Failed 9m35s (x4 over 11m) kubelet Failed to pull image "docker.io/bitnami/postgresql:11.7.0-debian-10-r26": rpc error: code = Unknown desc = Error response from daemon: Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Warning Failed 9m35s (x4 over 11m) kubelet Error: ErrImagePull
Warning Failed 9m23s (x6 over 11m) kubelet Error: ImagePullBackOff
Normal BackOff 113s (x36 over 11m) kubelet Back-off pulling image "docker.io/bitnami/postgresql:11.7.0-debian-10-r26"如何将存储域从docker.io更改为ECR存储库?
发布于 2020-12-10 13:01:09
不如尝试使用values.yaml覆盖bitnami/postgresql的存储库域值。有关更多细节,请参阅这里。
image:
registry: docker.io
repository: bitnami/postgresql
tag: 11.10.0-debian-10-r24您可以按照以下方式覆盖image.registry值之上。
$ helm install postgresql \
--set image=your-registry/bitnami/postgresql:11.10.0-debian-10-r24 \
--version 8.6.4 bitnami/postgresqlhttps://stackoverflow.com/questions/65234408
复制相似问题