본문 바로가기
Kubernetes

Kubernetes 버전에 따른 kube-system 이미지 버전 찾는 법

by study4me 2024. 11. 23.
반응형

공식문서에서 찾을 수 있으면 좋겠지만

어디서 찾을 수 있는지 모르겠다...

 

kubeadm config image list 명령어를 사용하면 Kubernetes 버전에 따른 필요한 kube-system의 이미지 버전을 알 수 있다.

다만 kubeadm 명령어를 사용할 수 있는 환경을 셋팅하기 전에 이미지 버전을 찾고 싶은 사람들이 있을 것 같아서

몇 개의 버전을 찾아봤고 블로그에 적어본다.

 

그리고 kubeadm 버전에 따라서 조회 가능한 버전 범위가 한정적이다.

예를 들어서 kubeadm 버전이 1.29.10일 경우 1.28.0부터 리스트 조회가 가능하며

1.27 버전은 리스트 조회가 불가하다.

범위 외 버전을 조회하면 다음과 같은 에러가 발생한다.

kubeadm config images list --kubernetes-version 1.27.1
could not convert cfg to an internal cfg: this version of kubeadm only supports deploying clusters with the control plane version >= 1.28.0. Current version: v1.27.1
To see the stack trace of this error execute with --v=5 or higher

 

 

각 버전에 따른 이미지 버전 찾기

아래와 같이 명령어를 실행하면 각 버전이 나온다.

 

kubeadm config images list --kubernetes-version 1.28.0

registry.k8s.io/kube-apiserver:v1.28.0
registry.k8s.io/kube-controller-manager:v1.28.0
registry.k8s.io/kube-scheduler:v1.28.0
registry.k8s.io/kube-proxy:v1.28.0
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.28.1

registry.k8s.io/kube-apiserver:v1.28.1
registry.k8s.io/kube-controller-manager:v1.28.1
registry.k8s.io/kube-scheduler:v1.28.1
registry.k8s.io/kube-proxy:v1.28.1
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.28.2

registry.k8s.io/kube-apiserver:v1.28.2
registry.k8s.io/kube-controller-manager:v1.28.2
registry.k8s.io/kube-scheduler:v1.28.2
registry.k8s.io/kube-proxy:v1.28.2
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.28.3

registry.k8s.io/kube-apiserver:v1.28.3
registry.k8s.io/kube-controller-manager:v1.28.3
registry.k8s.io/kube-scheduler:v1.28.3
registry.k8s.io/kube-proxy:v1.28.3
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.28.4

registry.k8s.io/kube-apiserver:v1.28.4
registry.k8s.io/kube-controller-manager:v1.28.4
registry.k8s.io/kube-scheduler:v1.28.4
registry.k8s.io/kube-proxy:v1.28.4
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.28.5

registry.k8s.io/kube-apiserver:v1.28.5
registry.k8s.io/kube-controller-manager:v1.28.5
registry.k8s.io/kube-scheduler:v1.28.5
registry.k8s.io/kube-proxy:v1.28.5
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.28.15

registry.k8s.io/kube-apiserver:v1.28.15
registry.k8s.io/kube-controller-manager:v1.28.15
registry.k8s.io/kube-scheduler:v1.28.15
registry.k8s.io/kube-proxy:v1.28.15
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.29.0

registry.k8s.io/kube-apiserver:v1.29.0
registry.k8s.io/kube-controller-manager:v1.29.0
registry.k8s.io/kube-scheduler:v1.29.0
registry.k8s.io/kube-proxy:v1.29.0
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.29.1

registry.k8s.io/kube-apiserver:v1.29.1
registry.k8s.io/kube-controller-manager:v1.29.1
registry.k8s.io/kube-scheduler:v1.29.1
registry.k8s.io/kube-proxy:v1.29.1
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.29.2

registry.k8s.io/kube-apiserver:v1.29.2
registry.k8s.io/kube-controller-manager:v1.29.2
registry.k8s.io/kube-scheduler:v1.29.2
registry.k8s.io/kube-proxy:v1.29.2
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.29.11

registry.k8s.io/kube-apiserver:v1.29.11
registry.k8s.io/kube-controller-manager:v1.29.11
registry.k8s.io/kube-scheduler:v1.29.11
registry.k8s.io/kube-proxy:v1.29.11
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.30.1

registry.k8s.io/kube-apiserver:v1.30.1
registry.k8s.io/kube-controller-manager:v1.30.1
registry.k8s.io/kube-scheduler:v1.30.1
registry.k8s.io/kube-proxy:v1.30.1
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.30.7

registry.k8s.io/kube-apiserver:v1.30.7
registry.k8s.io/kube-controller-manager:v1.30.7
registry.k8s.io/kube-scheduler:v1.30.7
registry.k8s.io/kube-proxy:v1.30.7
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.31.1

registry.k8s.io/kube-apiserver:v1.31.1
registry.k8s.io/kube-controller-manager:v1.31.1
registry.k8s.io/kube-scheduler:v1.31.1
registry.k8s.io/kube-proxy:v1.31.1
registry.k8s.io/coredns/coredns:v1.11.3
registry.k8s.io/pause:3.10
registry.k8s.io/etcd:3.5.15-0

 

 kubeadm config images list --kubernetes-version 1.31.2

registry.k8s.io/kube-apiserver:v1.31.2
registry.k8s.io/kube-controller-manager:v1.31.2
registry.k8s.io/kube-scheduler:v1.31.2
registry.k8s.io/kube-proxy:v1.31.2
registry.k8s.io/coredns/coredns:v1.11.3
registry.k8s.io/pause:3.10
registry.k8s.io/etcd:3.5.15-0

 

kubeadm config images list --kubernetes-version 1.31.3

registry.k8s.io/kube-apiserver:v1.31.3
registry.k8s.io/kube-controller-manager:v1.31.3
registry.k8s.io/kube-scheduler:v1.31.3
registry.k8s.io/kube-proxy:v1.31.3
registry.k8s.io/coredns/coredns:v1.11.3
registry.k8s.io/pause:3.10
registry.k8s.io/etcd:3.5.15-0

 

 

 

이상한 점

근데 이상한 점을 발견했다.

현재 기준 존재하지 않는 버전을 검색해도 나온다..

아래 버전은 존재하지 않는 버전인데 아래처럼 나온다..ㅋㅋㅋ

그냥 coredns, pause, etcd 버전은 고정이고

apiserver, controller manager, scheduler, proxy 버전은 kubernetes 버전과 동일하게 반환하는 것 같다.

 

kubeadm config images list --kubernetes-version 1.28.80

registry.k8s.io/kube-apiserver:v1.28.80
registry.k8s.io/kube-controller-manager:v1.28.80
registry.k8s.io/kube-scheduler:v1.28.80
registry.k8s.io/kube-proxy:v1.28.80
registry.k8s.io/coredns/coredns:v1.11.1
registry.k8s.io/pause:3.9
registry.k8s.io/etcd:3.5.15-0

 

 

반응형