Skip to content

Commit b66eb72

Browse files
pacoxuSergeyKanzhelev
authored andcommitted
migrate from k8s.gcr.io to registry.k8s.io
Signed-off-by: Paco Xu <[email protected]> (cherry picked from commit 9525b31) Signed-off-by: Sergey Kanzhelev <[email protected]>
1 parent 6afbeac commit b66eb72

10 files changed

Lines changed: 22 additions & 22 deletions

File tree

.github/workflows/windows-periodic.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ env:
2323
DEFAULT_ADMIN_USERNAME: azureuser
2424
SSH_OPTS: "-o ServerAliveInterval=20 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
2525
REMOTE_VM_BIN_PATH: "c:\\containerd\\bin"
26-
BUSYBOX_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/busybox:1.29-2"
27-
RESOURCE_CONSUMER_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/resource-consumer:1.10"
28-
WEBSERVER_TESTING_IMAGE_REF: "k8s.gcr.io/e2e-test-images/nginx:1.14-2"
26+
BUSYBOX_TESTING_IMAGE_REF: "registry.k8s.io/e2e-test-images/busybox:1.29-2"
27+
RESOURCE_CONSUMER_TESTING_IMAGE_REF: "registry.k8s.io/e2e-test-images/resource-consumer:1.10"
28+
WEBSERVER_TESTING_IMAGE_REF: "registry.k8s.io/e2e-test-images/nginx:1.14-2"
2929

3030

3131
jobs:

contrib/ansible/cri-containerd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
# TODO This needs to be removed once we have consistent concurrent pull results
6262
- name: "Pre-pull pause container image"
6363
shell: |
64-
/usr/local/bin/ctr pull k8s.gcr.io/pause:3.6
64+
/usr/local/bin/ctr pull registry.k8s.io/pause:3.6
6565
/usr/local/bin/crictl --runtime-endpoint unix:///run/containerd/containerd.sock \
66-
pull k8s.gcr.io/pause:3.6
66+
pull registry.k8s.io/pause:3.6

docs/cri/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ version = 2
4040
selinux_category_range = 1024
4141

4242
# sandbox_image is the image used by sandbox container.
43-
sandbox_image = "k8s.gcr.io/pause:3.6"
43+
sandbox_image = "registry.k8s.io/pause:3.6"
4444

4545
# stats_collect_period is the period (in seconds) of snapshots stats collection.
4646
stats_collect_period = 10

docs/cri/crictl.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,29 +59,29 @@ command. With the load command you inject a container image into the container
5959
runtime from a file. First you need to create a container image tarball. For
6060
example to create an image tarball for a pause container using Docker:
6161
```console
62-
$ docker pull k8s.gcr.io/pause:3.6
62+
$ docker pull registry.k8s.io/pause:3.6
6363
3.6: Pulling from pause
6464
fbe1a72f5dcd: Pull complete
6565
Digest: sha256:3d380ca8864549e74af4b29c10f9cb0956236dfb01c40ca076fb6c37253234db
66-
Status: Downloaded newer image for k8s.gcr.io/pause:3.6
67-
k8s.gcr.io/pause:3.6
68-
$ docker save k8s.gcr.io/pause:3.6 -o pause.tar
66+
Status: Downloaded newer image for registry.k8s.io/pause:3.6
67+
registry.k8s.io/pause:3.6
68+
$ docker save registry.k8s.io/pause:3.6 -o pause.tar
6969
```
7070
Then use `ctr` to load the container image into the container runtime:
7171
```console
7272
# The cri plugin uses the "k8s.io" containerd namespace.
7373
$ sudo ctr -n=k8s.io images import pause.tar
74-
Loaded image: k8s.gcr.io/pause:3.6
74+
Loaded image: registry.k8s.io/pause:3.6
7575
```
7676
List images and inspect the pause image:
7777
```console
7878
$ sudo crictl images
7979
IMAGE TAG IMAGE ID SIZE
8080
docker.io/library/busybox latest f6e427c148a76 728kB
81-
k8s.gcr.io/pause 3.6 ed210e3e4a5ba 683kB
81+
registry.k8s.io/pause 3.6 ed210e3e4a5ba 683kB
8282
$ sudo crictl inspecti ed210e3e4a5ba
8383
... displays information about the pause image.
84-
$ sudo crictl inspecti k8s.gcr.io/pause:3.6
84+
$ sudo crictl inspecti registry.k8s.io/pause:3.6
8585
... displays information about the pause image.
8686
```
8787

@@ -201,7 +201,7 @@ $ crictl info
201201
}
202202
},
203203
"streamServerPort": "10010",
204-
"sandboxImage": "k8s.gcr.io/pause:3.6",
204+
"sandboxImage": "registry.k8s.io/pause:3.6",
205205
"statsCollectPeriod": 10,
206206
"containerdRootDir": "/var/lib/containerd",
207207
"containerdEndpoint": "unix:///run/containerd/containerd.sock",

integration/client/client_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ func TestImagePullSomePlatforms(t *testing.T) {
383383

384384
// Note: Must be different to the image used in TestImagePullAllPlatforms
385385
// or it will see the content pulled by that, and fail.
386-
img, err := client.Fetch(ctx, "k8s.gcr.io/e2e-test-images/busybox:1.29-2", opts...)
386+
img, err := client.Fetch(ctx, "registry.k8s.io/e2e-test-images/busybox:1.29-2", opts...)
387387
if err != nil {
388388
t.Fatal(err)
389389
}

integration/client/image_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func TestImageIsUnpacked(t *testing.T) {
7979

8080
func TestImagePullWithDistSourceLabel(t *testing.T) {
8181
var (
82-
source = "k8s.gcr.io"
82+
source = "registry.k8s.io"
8383
repoName = "pause"
8484
tag = "3.6"
8585
)
@@ -231,7 +231,7 @@ func TestImageUsage(t *testing.T) {
231231
func TestImageSupportedBySnapshotter_Error(t *testing.T) {
232232
var unsupportedImage string
233233
if runtime.GOOS == "windows" {
234-
unsupportedImage = "k8s.gcr.io/pause-amd64:3.2"
234+
unsupportedImage = "registry.k8s.io/pause-amd64:3.2"
235235
} else {
236236
unsupportedImage = "mcr.microsoft.com/windows/nanoserver:1809"
237237
}

integration/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ func initImages(imageListFile string) {
4949
imageList = ImageList{
5050
Alpine: "docker.io/library/alpine:latest",
5151
BusyBox: "docker.io/library/busybox:latest",
52-
Pause: "k8s.gcr.io/pause:3.6",
53-
ResourceConsumer: "k8s.gcr.io/e2e-test-images/resource-consumer:1.10",
52+
Pause: "registry.k8s.io/pause:3.6",
53+
ResourceConsumer: "registry.k8s.io/e2e-test-images/resource-consumer:1.10",
5454
VolumeCopyUp: "ghcr.io/containerd/volume-copy-up:2.1",
5555
VolumeOwnership: "ghcr.io/containerd/volume-ownership:2.1",
5656
}

integration/image_list.sample.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
alpine = "docker.io/library/alpine:latest"
22
busybox = "docker.io/library/busybox:latest"
3-
pause = "k8s.gcr.io/pause:3.6"
3+
pause = "registry.k8s.io/pause:3.6"
44
VolumeCopyUp = "ghcr.io/containerd/volume-copy-up:2.1"
55
VolumeOwnership = "ghcr.io/containerd/volume-ownership:2.1"

pkg/cri/config/config_unix.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func DefaultConfig() PluginConfig {
9292
TLSKeyFile: "",
9393
TLSCertFile: "",
9494
},
95-
SandboxImage: "k8s.gcr.io/pause:3.6",
95+
SandboxImage: "registry.k8s.io/pause:3.6",
9696
StatsCollectPeriod: 10,
9797
SystemdCgroup: false,
9898
MaxContainerLogLineSize: 16 * 1024,

pkg/cri/config/config_windows.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ func DefaultConfig() PluginConfig {
5252
TLSKeyFile: "",
5353
TLSCertFile: "",
5454
},
55-
SandboxImage: "k8s.gcr.io/pause:3.6",
55+
SandboxImage: "registry.k8s.io/pause:3.6",
5656
StatsCollectPeriod: 10,
5757
MaxContainerLogLineSize: 16 * 1024,
5858
MaxConcurrentDownloads: 3,

0 commit comments

Comments
 (0)