-
카테고리
-
세부 분야
데브옵스 · 인프라
-
해결 여부
미해결
kubeadm upgrade apply 1.25.1 실행 시 오류
23.07.31 00:48 작성 23.08.06 16:14 수정 조회수 356
0
안녕하세요, 조훈님!
명령어 "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에서만 발생하고 나머지 워커 노드들은 정상적으로 업그레이드가 된 상황입니다.
혹시 어떤 점이 잘못 되었는지 알 수 있을까요?
답변을 작성해보세요.
0
조훈(Hoon Jo)
지식공유자2023.08.01
안녕하세요
어떤 순서로 진행하셨을까요?
영상도 그렇지만 여기 .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"}
SUBIN KIM
질문자2023.08.06
안녕하세요, 조훈님!
답변 주신 대로 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
답변 감사합니다.
조훈(Hoon Jo)
지식공유자2023.08.06
안녕하세요
뒤로 가서 실행하고 다시 앞으로 오신 걸로 보여집니다.
해당 버전으로는 진행이 어려울 수도 있으니, 가급적 다시 1.25 버전 대로 배포하시는게 좋으실 것 같습니다. 1.27 버전대는 강의에서 문제가 있는지 없는지 QA 되지 않았다고 보시면 될 것 같습니다.
답변 1