0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Karpenterで起動したBottlerocketのdefault registryをmirror.gcr.ioに変更してDocker HubのRate Limit回避する

Last updated at Posted at 2025-03-04

Docker HubのRate Limitが4月1日から10pull/hourになるため、Karpenterで起動するBottlerocketノードのデフォルトレジストリをmirror.gcr.ioに変更して利用する手順を紹介します。

1. Karpenterの設定

Bottlerocketのuser-dataに以下のTOMLスニペットを追加します。これにより、Docker Hubのpull要求がmirror.gcr.ioを経由するようになります。

apiVersion: karpenter.k8s.aws/v1
kind: EC2NodeClass
metadata:
  name: my-bottlerocket
spec:
  amiFamily: Bottlerocket
+ userData: |
+   [[settings.container-registry.mirrors]]
+     registry = "docker.io"
+     endpoint = ["https://mirror.gcr.io"]

2. まとめ

この設定により、Docker Hubのpull要求はデフォルトで docker.io ではなく mirror.gcr.io を利用するようになり、4月1日からのRate Limit(10pull/hour)による影響を回避できます。実際にPodをデプロイして、pullの挙動も併せて確認してください。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?