kubernetes: kubeadm config images list does not provide the correct version of the images

What happened?

The command kubeadm config images list does not provide the correct version of the image

[root@localhost]# ./kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"31", GitVersion:"v1.31.1", GitCommit:"948afe5ca072329a73c8e79ed5938717a5cb3d21", GitTreeState:"clean", BuildDate:"2024-09-11T21:26:49Z", GoVersion:"go1.22.6", Compiler:"gc", Platform:"linux/amd64"}
[root@localhost]#
[root@localhost]# ./kubeadm config images list
registry.k8s.io/kube-apiserver:v1.31.0
registry.k8s.io/kube-controller-manager:v1.31.0
registry.k8s.io/kube-scheduler:v1.31.0
registry.k8s.io/kube-proxy:v1.31.0
registry.k8s.io/coredns/coredns:v1.11.3
registry.k8s.io/pause:3.10
registry.k8s.io/etcd:3.5.15-0
[root@localhost]# 
[root@localhost]# ./kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"30", GitVersion:"v1.30.5", GitCommit:"74e84a90c725047b1328ff3d589fedb1cb7a120e", GitTreeState:"clean", BuildDate:"2024-09-12T00:17:07Z", GoVersion:"go1.22.6", Compiler:"gc", Platform:"linux/amd64"}
[root@localhost]#
[root@localhost]# ./kubeadm config images list
I0913 15:27:16.104557    1624 version.go:256] remote version is much newer: v1.31.0; falling back to: stable-1.30
registry.k8s.io/kube-apiserver:v1.30.4
registry.k8s.io/kube-controller-manager:v1.30.4
registry.k8s.io/kube-scheduler:v1.30.4
registry.k8s.io/kube-proxy:v1.30.4
registry.k8s.io/coredns/coredns:v1.11.3
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0
[root@localhost]# 

What did you expect to happen?

To provide the correct version of the images.

How can we reproduce it (as minimally and precisely as possible)?

wget https://dl.k8s.io/release/v1.31.1/bin/linux/amd64/kubeadm
chmod 0755 kubeadm
./kubeadm version
./kubeadm config images list
wget https://dl.k8s.io/release/v1.30.5/bin/linux/amd64/kubeadm
chmod 0755 kubeadm
./kubeadm version
./kubeadm config images list

Anything else we need to know?

No response

Kubernetes version

kubeadm v1.31.1 and v1.30.5

Cloud provider

OS version

# On Linux:
$ cat /etc/os-release
# paste output here
$ uname -a
# paste output here

# On Windows:
C:\> wmic os get Caption, Version, BuildNumber, OSArchitecture
# paste output here

Install tools

Container runtime (CRI) and version (if applicable)

Related plugins (CNI, CSI, …) and versions (if applicable)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (20 by maintainers)

Commits related to this issue

Most upvoted comments

@saschagrunert I think we can close this ?

I’ll take care of this before EoW. I’m a little away from OSS work currently.

the root cause is that we can not fetch the latest Kubernetes version from URL

image

image

image

Did we forget to turn down the bucket sync? If not, then these got overwritten by sync from the old bucket I’d guess. That’s an easy fix at least 😅

Great idea! I disabled the sync job. I think we need to wait Oct 24 to validate this and we should probably track this in a separate issue.