현재 k8s 자동 프로비저닝 툴을 개발 중입니다.
폐쇄망 환경에서 v1.31로 업그레이드 해줘요!!

k8s v1.31로 올라가면서 업그레이드 관련 사항이 몇가지 있다.
먼저 k8s-v1.31 문서를 찾아보면
Dependencies: started using registry.k8s.io/pause:3.10. (#125112, @neolit123) [SIG CLI, Cloud Provider, Cluster Lifecycle, Node, Release, Testing and Windows]라는 글이 있다.
upgrade-health-check라는 job이 돌아가면서 여러가지를 체크하는데 해당 pod가 registry.k8s.io/pause:3.10해당 이미지를 필수로 사용해서 image pullback error가 발생하여 도중에 멈춰버린다.
그리고 kubeadm.yaml을 통하여 설정하는 부분에 있어서 kubeadm.k8s.io/v1beta3이 v1.34까지만 지원하고 kubeadm.k8s.io/v1beta4를 사용해야한다.
클러스터 설정을 그대로 가져가고싶다면
kubeadm config migrate --old-config kubeadm.yaml --new-config kubeadm.yaml 해당 명령어를 사용하면된다.
마지막으로kubeadm.k8s.io/v1beta4로 변경되면서
extraArgs가 문자열이 아닌 name-value 형태로 변경되었다.
# 변경전
extraArgs:
apiserver-count: "3"
---
# 변경 후
extraArgs:
- name: apiserver-count
value: "3"
v1.31
Kubeadm: enabled the v1beta4 API. For a complete changelog since v1beta3 please see https://kubernetes.io/docs/reference/config-api/kubeadm-config.v1beta4/.
The API does include a few breaking changes:
The "extraArgs" component construct is now a list of "name"/"value" pairs instead of a string/string map. This has been done to support duplicate args where needed.
The "JoinConfiguration.discovery.timeout" field has been replaced by "JoinConfiguration.timeouts.discovery".
The "ClusterConfiguration.timeoutForControlPlane" field has been replaced by "{Init|Join}Configuration.timeouts.controlPlaneComponentHealthCheck". Please use the command "kubeadm config migrate" to migrate your existing v1beta3 configuration to v1beta4.
v1beta3 is now marked as deprecated but will continue to be supported until version 1.34 or later. The storage configuration in the kube-system/kubeadm-config ConfigMap is now a v1beta4 ClusterConfiguration. (#125029, @neolit123) [SIG Cluster Lifecycle]
---
v1.32
The flowcontrol.apiserver.k8s.io/v1beta3 API version of FlowSchema and PriorityLevelConfiguration is no longer served in v1.32. Migrate manifests and API clients to use the flowcontrol.apiserver.k8s.io/v1 API version, available since v1.29. More information is at https://kubernetes.io/docs/reference/using-api/deprecation-guide/#flowcontrol-resources-v132 (#127017, @carlory) [SIG API Machinery and Testing]
폐쇄망 환경이니 따로 구한 registry.k8s.io/pause:3.10와 관련된 패키지들을 다 넣어준 이후 kubeadm config migrate을 실행하고 나온 파일 중 필요없는 부분을 삭제하고 업그레이드를 진행하면 잘 작동할것!