kubeadm upgrade apply 1.25.1 실행 시 오류
643
작성한 질문수 3
안녕하세요, 조훈님!
명령어 "kubeadm upgrade apply 1.25.1" 실행 시 오류가 발생합니다.
[root@m-k8s ~]# kubeadm upgrade apply 1.25.1
[upgrade/config] Making sure the configuration is correct:
[upgrade/config] Reading configuration from the cluster...
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[preflight] Running pre-flight checks.
[upgrade] Running cluster health checks
[upgrade/health] FATAL: [preflight] Some fatal errors occurred:
[ERROR ControlPlaneNodesReady]: there are NotReady control-planes in the cluster: [m-k8s]
[preflight] If you know what you are doing, you can make a check non-fatal with --ignore-preflight-errors=...
To see the stack trace of this error execute with --v=5 or higher
위와 같은 오류가 발생하는데 m-k8s에서만 발생하고 나머지 워커 노드들은 정상적으로 업그레이드가 된 상황입니다.
혹시 어떤 점이 잘못 되었는지 알 수 있을까요?
답변 1
0
안녕하세요
어떤 순서로 진행하셨을까요?
영상도 그렇지만 여기 .cmd에도 kubeadm 버전을 올리고 나서 하도록 가이드 되어 있는데 위의 내용만 보고는 파악되지 않습니다.
그리고 다음과 같이 실제로도 잘 됩니다.
[root@m-k8s 6.2]# kubeadm upgrade apply 1.25.1
[upgrade/config] Making sure the configuration is correct:
[upgrade/config] Reading configuration from the cluster...
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[preflight] Running pre-flight checks.
[upgrade] Running cluster health checks
[upgrade/version] You have chosen to change the cluster version to "v1.25.1"
[upgrade/versions] Cluster version: v1.25.12
[upgrade/versions] kubeadm version: v1.25.1
[upgrade] Are you sure you want to proceed? [y/N]: y
[upgrade/prepull] Pulling images required for setting up a Kubernetes cluster
[upgrade/prepull] This might take a minute or two, depending on the speed of your internet connection
[upgrade/prepull] You can also perform this action in beforehand using 'kubeadm config images pull'어떤 방법으로 하셨는지 어떻게 제가 재현할 수 있는지 알려주시면 알아보도록 하겠습니다.
[root@m-k8s 6.2]# kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"25", GitVersion:"v1.25.1", GitCommit:"e4d4e1ab7cf1bf15273ef97303551b279f0920a9", GitTreeState:"clean", BuildDate:"2022-09-14T19:47:53Z", GoVersion:"go1.19.1", Compiler:"gc", Platform:"linux/amd64"}
0
안녕하세요, 조훈님!
답변 주신 대로 kubeadm 버전이 1.27.4인 것을 확인하였습니다.
[root@m-k8s ~]# kubeadm version
kubeadm version: &version.Info{Major:"1", Minor:"27", GitVersion:"v1.27.4", GitCommit:"fa3d7990104d7c1f16943a67f11b154b71f6a132", GitTreeState:"clean", BuildDate:"2023-07-19T12:19:40Z", GoVersion:"go1.20.6", Compiler:"gc", Platform:"linux/amd64"}
kubeadm 버전이 1.25.1보다 상위 버전이기 때문에 업그레이드가 정상적으로 진행되지 않는 것으로 보이는데
kubeadm을 모두 삭제하고 재설치 해야 할까요? 아니면 이번 강의만 넘기고 다음 강의부터 진행하더라도 무리가 없을까요?
[root@m-k8s ~]# kubeadm upgrade apply v1.25.1
[upgrade/config] Making sure the configuration is correct:
[upgrade/config] Reading configuration from the cluster...
[upgrade/config] FYI: You can look at this config file with 'kubectl -n kube-system get cm kubeadm-config -o yaml'
[upgrade/config] FATAL: this version of kubeadm only supports deploying clusters with the control plane version >= 1.26.0. Current version: v1.25.5
To see the stack trace of this error execute with --v=5 or higher
답변 감사합니다.
1
안녕하세요
뒤로 가서 실행하고 다시 앞으로 오신 걸로 보여집니다.
해당 버전으로는 진행이 어려울 수도 있으니, 가급적 다시 1.25 버전 대로 배포하시는게 좋으실 것 같습니다. 1.27 버전대는 강의에서 문제가 있는지 없는지 QA 되지 않았다고 보시면 될 것 같습니다.
환경 설정에 대하여
0
53
2
실습 환경 관련 질의
0
43
2
ch4 디렉토리
0
72
2
cp-k8s-1.30.0(github_SysNet4Admin).ova 파일 확인 부탁드립니다.
0
49
2
6.2 nfs_exporter Permission denied
0
71
2
12분 13초부터의 내용 질문
0
71
1
K8S https 로 try 하는 부분에 대한 Error 확인
0
79
1
deployment 관련 문의
0
83
3
kubectl get nodes 관련 문의
0
197
5
Vagrant 도 에러, OVA도 에러... 실습환경을 만드는게 너무 힘들어요~~~~~!!!!!!
0
112
3
Tabby를 설치후 Copy할때 오류
0
86
3
nginx run 시 ImagePullBackOff 발생
0
102
4
쿠버네티스 환경 구축 질문입니다.
0
111
2
virtualbox 설치 실패
1
123
2
2.4강 brew install 시 .rb 파일 미인식 (./virtualbox-v7.1.10/virtualbox.rb)
1
160
2
워커노드 OS SWAP 질문
0
59
1
2.4.베이그런트(Vagrant)+버추얼박스/vagrant up issue
0
126
2
k run chk-info --image=sysnet4admin/chk-info 에러..
0
103
2
vagrant up 시에 Running pre-flight checks 에서 에러
0
86
2
failed to pull and unpack image \"registry.k8s.io/kube-apiserver:v1.30.14\": context canceled"
0
185
2
vagrant up을 하면 설정과 다르게 설정이 됩니다.
0
125
2
Tabby 무응답
0
128
4
ova 입력시
0
162
3
vagrant up
0
162
2





