Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make old k8s releases also use the new registry #16017

Open
afbjorklund opened this issue Mar 10, 2023 · 5 comments
Open

Make old k8s releases also use the new registry #16017

afbjorklund opened this issue Mar 10, 2023 · 5 comments
Labels
kind/improvement Categorizes issue or PR as related to improving upon a current feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@afbjorklund
Copy link
Collaborator

afbjorklund commented Mar 10, 2023

Previously, we have changed all releases since 1.25 to use registry.k8s.io

Now, we also need to change any old releases to stop using k8s.gcr.io too

https://kubernetes.io/blog/2023/03/10/image-registry-redirect/

https://kubernetes.io/blog/2023/02/06/k8s-gcr-io-freeze-announcement/

The last 1.23 release on k8s.gcr.io will be 1.23.18
The last 1.24 release on k8s.gcr.io will be 1.24.12
The last 1.25 release on k8s.gcr.io will be 1.25.8
The last 1.26 release on k8s.gcr.io will be 1.26.3


This can be done by adding a flag to kubeadm, and by re-tagging the images.

--image-repository=registry.k8s.io

  • load preloaded images from tarball

  • retag k8s.gcr.io/* as registry.k8s.io/*

  • to avoid having to redo all preloads

All newer releases should already be using the new registry, so mostly for 1.16-1.22

The old registry is going to be deleted, so it should not be used for new installations.

@afbjorklund
Copy link
Collaborator Author

$ ~/.minikube/cache/linux/amd64/v1.23.0/kubeadm config images list --kubernetes-version=v1.23.0
k8s.gcr.io/kube-apiserver:v1.23.0
k8s.gcr.io/kube-controller-manager:v1.23.0
k8s.gcr.io/kube-scheduler:v1.23.0
k8s.gcr.io/kube-proxy:v1.23.0
k8s.gcr.io/pause:3.6
k8s.gcr.io/etcd:3.5.1-0
k8s.gcr.io/coredns/coredns:v1.8.6
$ ~/.minikube/cache/linux/amd64/v1.23.0/kubeadm config images list --kubernetes-version=v1.23.0 --image-repository=registry.k8s.io
registry.k8s.io/kube-apiserver:v1.23.0
registry.k8s.io/kube-controller-manager:v1.23.0
registry.k8s.io/kube-scheduler:v1.23.0
registry.k8s.io/kube-proxy:v1.23.0
registry.k8s.io/pause:3.6
registry.k8s.io/etcd:3.5.1-0
registry.k8s.io/coredns:v1.8.6

It's the same images.

REPOSITORY              TAG       IMAGE ID       CREATED         SIZE
registry.k8s.io/pause   3.6       6270bb605e12   18 months ago   683kB
k8s.gcr.io/pause        3.6       6270bb605e12   18 months ago   683kB

@afbjorklund
Copy link
Collaborator Author

@spowelljr @medyagh

@afbjorklund afbjorklund added the kind/improvement Categorizes issue or PR as related to improving upon a current feature. label Mar 11, 2023
@afbjorklund afbjorklund added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Mar 11, 2023
@afbjorklund
Copy link
Collaborator Author

afbjorklund commented Mar 11, 2023

Re-tagging the images for airgapped installations is left to do, also needs checking china mirror for older releases.

Should also look in the cache for the old names, if not using the preload. Again, only for the affected old releases...

@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle stale
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jun 9, 2023
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues.

This bot triages un-triaged issues according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue as fresh with /remove-lifecycle rotten
  • Close this issue with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Jul 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/improvement Categorizes issue or PR as related to improving upon a current feature. lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
None yet
Development

No branches or pull requests

3 participants