通过下面的命令进行升级 k8s 集群
kubeadm upgrade apply v1.27.1 --ignore-preflight-errors=CoreDNSUnsupportedPlugins --force
出现下面2个警告
W0507 07:19:20.105839 134725 images.go:80] could not find officially supported version of etcd for Kubernetes v1.27.1, falling back to the nearest etcd version (3.5.7-0)
W0507 07:19:30.854677 134725 checks.go:835] detected that the sandbox image "registry.aliyuncs.com/google_containers/pause:3.6" of the container runtime is inconsistent with that used by kubeadm. It is recommended that using "registry.aliyuncs.com/google_containers/pause:3.9" as the CRI sandbox image. --force
请问这2个警告是否有负面影响?
etcd最好还是升级一下,否则1.27.1与etcd相关的功能可能会不可用,参见https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG/CHANGELOG-1.27.md
registry.aliyuncs.com/google_containers/pause 这个应该影响不大,告警级别是recommended,changelog看下
https://github.com/kubernetes/kubernetes/blob/master/build/pause/CHANGELOG.md
目前没有升级 etcd,没发现问题,CHANGELOG 中与 etcd 相关的一项是:
etcd: Updated to v3.5.7
etcd 最新版是 3.5.8
@dudu: etcd没升级对集群运行该没啥影响,对新特性运行有影响
@charlieroro: 那我找时间升级一下