From f3cceca1c34f201a5107f04fd82e38030230cdcd Mon Sep 17 00:00:00 2001 From: rasmus Date: Sun, 28 Apr 2024 04:58:50 +0300 Subject: [PATCH] use gcr mirror for images with full docker.io path cluster constantly failing due to rate limits, please find a better solution --- minio-clusters/dedicated.yaml | 2 +- minio-clusters/shared.yaml | 2 +- oidc-gateway/deployment.yml | 4 ++-- redis-clusters/cache.yaml | 2 +- redis-clusters/ephemeral.yaml | 2 +- redis-clusters/persistent.yaml | 2 +- wildduck/clamav.yaml | 2 +- wildduck/haraka.yaml | 2 +- wildduck/rspamd.yaml | 2 +- wildduck/wildduck-operator.yaml | 2 +- wildduck/wildduck.yaml | 2 +- wildduck/zonemta.yaml | 2 +- 12 files changed, 13 insertions(+), 13 deletions(-) diff --git a/minio-clusters/dedicated.yaml b/minio-clusters/dedicated.yaml index ba98395..95a2b6f 100644 --- a/minio-clusters/dedicated.yaml +++ b/minio-clusters/dedicated.yaml @@ -12,7 +12,7 @@ spec: podSpec: containers: - name: minio - image: docker.io/minio/minio:RELEASE.2023-07-18T17-49-40Z@sha256:8879cd0b0c4087817430e21be3ad909d60e9da62fac3e8d9368d9fde51279229 + image: mirror.gcr.io/minio/minio:RELEASE.2023-07-18T17-49-40Z@sha256:8879cd0b0c4087817430e21be3ad909d60e9da62fac3e8d9368d9fde51279229 imagePullPolicy: IfNotPresent nodeSelector: dedicated: storage diff --git a/minio-clusters/shared.yaml b/minio-clusters/shared.yaml index 8207dc3..3aaee23 100644 --- a/minio-clusters/shared.yaml +++ b/minio-clusters/shared.yaml @@ -13,7 +13,7 @@ spec: podSpec: containers: - name: minio - image: docker.io/minio/minio:RELEASE.2023-07-18T17-49-40Z@sha256:8879cd0b0c4087817430e21be3ad909d60e9da62fac3e8d9368d9fde51279229 + image: mirror.gcr.io/minio/minio:RELEASE.2023-07-18T17-49-40Z@sha256:8879cd0b0c4087817430e21be3ad909d60e9da62fac3e8d9368d9fde51279229 imagePullPolicy: IfNotPresent nodeSelector: dedicated: storage diff --git a/oidc-gateway/deployment.yml b/oidc-gateway/deployment.yml index 4df1abc..c059fdc 100644 --- a/oidc-gateway/deployment.yml +++ b/oidc-gateway/deployment.yml @@ -72,7 +72,7 @@ spec: serviceAccountName: oidc-gateway containers: - name: oidc-key-manager - image: docker.io/codemowers/passmower + image: mirror.gcr.io/codemowers/passmower command: [ '/app/node_modules/.bin/key-manager', 'initialize', '-c', 'cluster' ] restartPolicy: Never --- @@ -95,7 +95,7 @@ spec: serviceAccountName: oidc-gateway containers: - name: oidc-gateway - image: docker.io/passmower/passmower:latest@sha256:b909ae01a1f8de9253cf3d6925d189eb687b4299c723f646838e1254a95f72be + image: mirror.gcr.io/passmower/passmower:latest@sha256:b909ae01a1f8de9253cf3d6925d189eb687b4299c723f646838e1254a95f72be ports: - containerPort: 3000 env: diff --git a/redis-clusters/cache.yaml b/redis-clusters/cache.yaml index 4985816..8b1ff9b 100644 --- a/redis-clusters/cache.yaml +++ b/redis-clusters/cache.yaml @@ -11,7 +11,7 @@ spec: podSpec: containers: - name: redis - image: docker.io/library/redis:7.0.11@sha256:1008c73f08e9f913868e2fa2e843212b62ea5bf3c66435d87bc7a6207bc0f1b4 + image: mirror.gcr.io/library/redis:7.0.11@sha256:1008c73f08e9f913868e2fa2e843212b62ea5bf3c66435d87bc7a6207bc0f1b4 imagePullPolicy: IfNotPresent args: - --maxmemory-policy diff --git a/redis-clusters/ephemeral.yaml b/redis-clusters/ephemeral.yaml index 8862384..65e39a5 100644 --- a/redis-clusters/ephemeral.yaml +++ b/redis-clusters/ephemeral.yaml @@ -11,7 +11,7 @@ spec: podSpec: containers: - name: redis - image: docker.io/library/redis:7.0.11@sha256:1008c73f08e9f913868e2fa2e843212b62ea5bf3c66435d87bc7a6207bc0f1b4 + image: mirror.gcr.io/library/redis:7.0.11@sha256:1008c73f08e9f913868e2fa2e843212b62ea5bf3c66435d87bc7a6207bc0f1b4 imagePullPolicy: IfNotPresent nodeSelector: dedicated: storage diff --git a/redis-clusters/persistent.yaml b/redis-clusters/persistent.yaml index 163ca0c..0f8c915 100644 --- a/redis-clusters/persistent.yaml +++ b/redis-clusters/persistent.yaml @@ -12,7 +12,7 @@ spec: podSpec: containers: - name: redis - image: docker.io/library/redis:7.0.11@sha256:1008c73f08e9f913868e2fa2e843212b62ea5bf3c66435d87bc7a6207bc0f1b4 + image: mirror.gcr.io/library/redis:7.0.11@sha256:1008c73f08e9f913868e2fa2e843212b62ea5bf3c66435d87bc7a6207bc0f1b4 imagePullPolicy: IfNotPresent args: - --activedefrag yes diff --git a/wildduck/clamav.yaml b/wildduck/clamav.yaml index 993b764..734ce32 100644 --- a/wildduck/clamav.yaml +++ b/wildduck/clamav.yaml @@ -16,7 +16,7 @@ spec: containers: # TODO: Figure out how to trigger update - name: clamd - image: docker.io/clamav/clamav:1.1 + image: mirror.gcr.io/clamav/clamav:1.1 imagePullPolicy: IfNotPresent ports: - containerPort: 3310 diff --git a/wildduck/haraka.yaml b/wildduck/haraka.yaml index ae82859..02c406d 100644 --- a/wildduck/haraka.yaml +++ b/wildduck/haraka.yaml @@ -146,7 +146,7 @@ spec: topologyKey: kubernetes.io/hostname containers: - name: haraka - image: docker.io/codemowers/wildduck-haraka-inbound:latest@sha256:a130cc6a60ab2a47cb5971355ed2474136254613b4b8bd30aeabc6e123695ea3 + image: mirror.gcr.io/codemowers/wildduck-haraka-inbound:latest@sha256:a130cc6a60ab2a47cb5971355ed2474136254613b4b8bd30aeabc6e123695ea3 imagePullPolicy: IfNotPresent ports: - containerPort: 2525 diff --git a/wildduck/rspamd.yaml b/wildduck/rspamd.yaml index b84f29f..ece870e 100644 --- a/wildduck/rspamd.yaml +++ b/wildduck/rspamd.yaml @@ -30,7 +30,7 @@ spec: fsGroup: 1000 containers: - name: rspamd - image: docker.io/codemowers/rspamd + image: mirror.gcr.io/codemowers/rspamd ports: - containerPort: 11333 name: rspamd diff --git a/wildduck/wildduck-operator.yaml b/wildduck/wildduck-operator.yaml index 4f74153..bb60e2c 100644 --- a/wildduck/wildduck-operator.yaml +++ b/wildduck/wildduck-operator.yaml @@ -16,7 +16,7 @@ spec: app: wildduck-operator spec: containers: - - image: docker.io/codemowers/wildduck-operator:latest + - image: mirror.gcr.io/codemowers/wildduck-operator:latest name: wildduck-operator env: - name: MANAGED_DOMAIN diff --git a/wildduck/wildduck.yaml b/wildduck/wildduck.yaml index 4dbbd83..03b428c 100644 --- a/wildduck/wildduck.yaml +++ b/wildduck/wildduck.yaml @@ -51,7 +51,7 @@ spec: topologyKey: topology.kubernetes.io/zone containers: - name: wildduck - image: docker.io/nodemailer/wildduck + image: mirror.gcr.io/nodemailer/wildduck ports: - containerPort: 8080 name: wildduck-api diff --git a/wildduck/zonemta.yaml b/wildduck/zonemta.yaml index e9a3b8f..c2fd2f1 100644 --- a/wildduck/zonemta.yaml +++ b/wildduck/zonemta.yaml @@ -82,7 +82,7 @@ spec: topologyKey: kubernetes.io/hostname containers: - name: zonemta - image: docker.io/codemowers/wildduck-zonemta-outbound:latest@sha256:0878c803164e636820398f11a3811f3d92b7771c6202cfe229f97449d0009119 + image: mirror.gcr.io/codemowers/wildduck-zonemta-outbound:latest@sha256:0878c803164e636820398f11a3811f3d92b7771c6202cfe229f97449d0009119 imagePullPolicy: IfNotPresent command: - /sbin/tini