diff --git a/backend/src/apiserver/config/config.json b/backend/src/apiserver/config/config.json index aa7088ce77c..3191ef5057d 100644 --- a/backend/src/apiserver/config/config.json +++ b/backend/src/apiserver/config/config.json @@ -23,6 +23,6 @@ "DEFAULTPIPELINERUNNERSERVICEACCOUNT": "pipeline-runner", "CacheEnabled": "true", "CRON_SCHEDULE_TIMEZONE": "UTC", - "CACHE_IMAGE": "gcr.io/google-containers/busybox", + "CACHE_IMAGE": "registry.k8s.io/busybox", "CACHE_NODE_RESTRICTIONS": "false" } diff --git a/backend/src/cache/server/mutation.go b/backend/src/cache/server/mutation.go index 9aa931e233b..3f76d129ad0 100644 --- a/backend/src/cache/server/mutation.go +++ b/backend/src/cache/server/mutation.go @@ -167,7 +167,7 @@ func MutatePodIfCached(req *v1beta1.AdmissionRequest, clientMgr ClientManagerInt // Image selected from Google Container Register(gcr) for it small size, gcr since there // is not image pull rate limit. For more info see issue: https://github.com/kubeflow/pipelines/issues/4099 - image := "gcr.io/google-containers/busybox" + image := "registry.k8s.io/busybox" if v, ok := os.LookupEnv("CACHE_IMAGE"); ok { image = v } diff --git a/backend/src/cache/server/mutation_test.go b/backend/src/cache/server/mutation_test.go index 28ab114e1e5..5ad0fc8c139 100644 --- a/backend/src/cache/server/mutation_test.go +++ b/backend/src/cache/server/mutation_test.go @@ -198,7 +198,7 @@ func TestDefaultImage(t *testing.T) { patchOperation, err := MutatePodIfCached(&fakeAdmissionRequest, fakeClientManager) assert.Nil(t, err) container := patchOperation[0].Value.([]corev1.Container)[0] - require.Equal(t, "gcr.io/google-containers/busybox", container.Image) + require.Equal(t, "registry.k8s.io/busybox", container.Image) } func TestSetImage(t *testing.T) { diff --git a/manifests/gcp_marketplace/chart/kubeflow-pipelines/templates/cache.yaml b/manifests/gcp_marketplace/chart/kubeflow-pipelines/templates/cache.yaml index 1652d5b67ab..b27de0c4d72 100644 --- a/manifests/gcp_marketplace/chart/kubeflow-pipelines/templates/cache.yaml +++ b/manifests/gcp_marketplace/chart/kubeflow-pipelines/templates/cache.yaml @@ -190,7 +190,7 @@ data: mysql_driver: "mysql" mysql_host: "mysql" mysql_port: "3306" - cache_image: "gcr.io/google-containers/busybox" + cache_image: "registry.k8s.io/busybox" cache_node_restrictions: "false" --- apiVersion: apps/v1 diff --git a/manifests/kustomize/base/installs/generic/pipeline-install-config.yaml b/manifests/kustomize/base/installs/generic/pipeline-install-config.yaml index 8c1b4d5961e..8f0c72086cb 100644 --- a/manifests/kustomize/base/installs/generic/pipeline-install-config.yaml +++ b/manifests/kustomize/base/installs/generic/pipeline-install-config.yaml @@ -63,8 +63,8 @@ data: ## cacheImage is the image that the mutating webhook will use to patch ## cached steps with. Will be used to echo a message announcing that ## the cached step result will be used. If not set it will default to - ## 'gcr.io/google-containers/busybox' - cacheImage: "gcr.io/google-containers/busybox" + ## 'registry.k8s.io/busybox' + cacheImage: "registry.k8s.io/busybox" ## cacheNodeRestrictions the dummy container runing if output is cached ## will run with the same affinity and node selector as the default pipeline ## step. This is defaulted to 'false' to allow the pod to be scheduled on diff --git a/manifests/kustomize/base/installs/generic/postgres/pipeline-install-config.yaml b/manifests/kustomize/base/installs/generic/postgres/pipeline-install-config.yaml index f5d87c67971..fbfa8da41a1 100644 --- a/manifests/kustomize/base/installs/generic/postgres/pipeline-install-config.yaml +++ b/manifests/kustomize/base/installs/generic/postgres/pipeline-install-config.yaml @@ -63,8 +63,8 @@ data: ## cacheImage is the image that the mutating webhook will use to patch ## cached steps with. Will be used to echo a message announcing that ## the cached step result will be used. If not set it will default to - ## 'gcr.io/google-containers/busybox' - cacheImage: "gcr.io/google-containers/busybox" + ## 'registry.k8s.io/busybox' + cacheImage: "registry.k8s.io/busybox" ## cacheNodeRestrictions the dummy container runing if output is cached ## will run with the same affinity and node selector as the default pipeline ## step. This is defaulted to 'false' to allow the pod to be scheduled on diff --git a/samples/core/resource_ops/resource_ops.py b/samples/core/resource_ops/resource_ops.py index 873fee5f919..24932ca29f6 100644 --- a/samples/core/resource_ops/resource_ops.py +++ b/samples/core/resource_ops/resource_ops.py @@ -36,7 +36,7 @@ "spec": { "containers": [{ "name": "sample-container", - "image": "k8s.gcr.io/busybox", + "image": "registry.k8s.io/busybox", "command": ["/usr/bin/env"] }], "restartPolicy": "Never" diff --git a/samples/test/placeholder_concat.py b/samples/test/placeholder_concat.py index 84f07fb2233..92ceab2996a 100644 --- a/samples/test/placeholder_concat.py +++ b/samples/test/placeholder_concat.py @@ -23,7 +23,7 @@ - {name: input_two, type: String} implementation: container: - image: gcr.io/google-containers/busybox + image: registry.k8s.io/busybox command: - sh - -ec diff --git a/samples/test/placeholder_if.py b/samples/test/placeholder_if.py index e0b5e04726f..b5bceec2fc3 100644 --- a/samples/test/placeholder_if.py +++ b/samples/test/placeholder_if.py @@ -23,7 +23,7 @@ - {name: optional_input_2, type: String, optional: true} implementation: container: - image: gcr.io/google-containers/busybox + image: registry.k8s.io/busybox command: - echo args: diff --git a/samples/test/placeholder_if_v2.py b/samples/test/placeholder_if_v2.py index f6f5063e2de..2f06aed5fa2 100644 --- a/samples/test/placeholder_if_v2.py +++ b/samples/test/placeholder_if_v2.py @@ -22,7 +22,7 @@ - {name: optional_input_2, type: String, optional: true} implementation: container: - image: gcr.io/google-containers/busybox + image: registry.k8s.io/busybox command: - echo args: