From 1f18e876f0e63e16a8beec2821889339e0a5ea8d Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 26 Nov 2020 13:38:10 +0100 Subject: [PATCH] e2e: use docker.io/library as prefix for official images Docker Hub offers a way to pull official images without any project prefix, like "docker.io/vault:latest". This does a redirect to the images located under "docker.io/library". By using the full qualified image name, a redirect gets removed while pulling the images. This reduces the likelyhood of hittin Docker Hub pull rate-limits. Signed-off-by: Niels de Vos --- examples/README.md | 4 ++-- examples/cephfs/deployment.yaml | 2 +- examples/cephfs/pod-clone.yaml | 2 +- examples/cephfs/pod-restore.yaml | 2 +- examples/cephfs/pod.yaml | 2 +- examples/kms/vault/vault.yaml | 2 +- examples/rbd/pod-clone.yaml | 2 +- examples/rbd/pod-restore.yaml | 2 +- examples/rbd/pod.yaml | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/examples/README.md b/examples/README.md index 2be9c1182..a5c719ac0 100644 --- a/examples/README.md +++ b/examples/README.md @@ -196,7 +196,7 @@ metadata: spec: containers: - name: my-container - image: docker.io/debian:latest + image: docker.io/library/debian:latest command: ["/bin/bash", "-c"] args: [ "tail -f /dev/null" ] volumeDevices: @@ -223,7 +223,7 @@ metadata: spec: containers: - name: my-container - image: docker.io/debian:latest + image: docker.io/library/debian:latest command: ["/bin/bash", "-c"] args: [ "tail -f /dev/null" ] volumeDevices: diff --git a/examples/cephfs/deployment.yaml b/examples/cephfs/deployment.yaml index 227bd9f1e..f4406d760 100644 --- a/examples/cephfs/deployment.yaml +++ b/examples/cephfs/deployment.yaml @@ -17,7 +17,7 @@ spec: spec: containers: - name: web-server - image: docker.io/nginx:latest + image: docker.io/library/nginx:latest volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/examples/cephfs/pod-clone.yaml b/examples/cephfs/pod-clone.yaml index d85af3e32..abe1210b0 100644 --- a/examples/cephfs/pod-clone.yaml +++ b/examples/cephfs/pod-clone.yaml @@ -6,7 +6,7 @@ metadata: spec: containers: - name: web-server - image: docker.io/nginx:latest + image: docker.io/library/nginx:latest volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/examples/cephfs/pod-restore.yaml b/examples/cephfs/pod-restore.yaml index 961a42ec3..3c243baaf 100644 --- a/examples/cephfs/pod-restore.yaml +++ b/examples/cephfs/pod-restore.yaml @@ -6,7 +6,7 @@ metadata: spec: containers: - name: web-server - image: docker.io/nginx:latest + image: docker.io/library/nginx:latest volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/examples/cephfs/pod.yaml b/examples/cephfs/pod.yaml index 51c391392..1e0150515 100644 --- a/examples/cephfs/pod.yaml +++ b/examples/cephfs/pod.yaml @@ -6,7 +6,7 @@ metadata: spec: containers: - name: web-server - image: docker.io/nginx:latest + image: docker.io/library/nginx:latest volumeMounts: - name: mypvc mountPath: /var/lib/www diff --git a/examples/kms/vault/vault.yaml b/examples/kms/vault/vault.yaml index bf128fe25..d7eb1fcdc 100644 --- a/examples/kms/vault/vault.yaml +++ b/examples/kms/vault/vault.yaml @@ -39,7 +39,7 @@ spec: spec: containers: - name: vault - image: docker.io/vault:latest + image: docker.io/library/vault:latest securityContext: runAsUser: 100 env: diff --git a/examples/rbd/pod-clone.yaml b/examples/rbd/pod-clone.yaml index 55cbd5d98..54e32f457 100644 --- a/examples/rbd/pod-clone.yaml +++ b/examples/rbd/pod-clone.yaml @@ -6,7 +6,7 @@ metadata: spec: containers: - name: web-server - image: docker.io/nginx:latest + image: docker.io/library/nginx:latest volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/examples/rbd/pod-restore.yaml b/examples/rbd/pod-restore.yaml index b4f50a022..b9b1fd23e 100644 --- a/examples/rbd/pod-restore.yaml +++ b/examples/rbd/pod-restore.yaml @@ -6,7 +6,7 @@ metadata: spec: containers: - name: web-server - image: docker.io/nginx:latest + image: docker.io/library/nginx:latest volumeMounts: - name: mypvc mountPath: /var/lib/www/html diff --git a/examples/rbd/pod.yaml b/examples/rbd/pod.yaml index 9e449abc3..22485b1e8 100644 --- a/examples/rbd/pod.yaml +++ b/examples/rbd/pod.yaml @@ -6,7 +6,7 @@ metadata: spec: containers: - name: web-server - image: docker.io/nginx:latest + image: docker.io/library/nginx:latest volumeMounts: - name: mypvc mountPath: /var/lib/www/html