Rancher local集群安装的是RKE2,但是主机提供商显示为RKE1

Rancher Server 设置

  • Rancher 版本:2.12.3
  • 安装选项 (Docker install/Helm Chart): Helm Chart
    • 如果是 Helm Chart 安装,需要提供 Local 集群的类型(RKE1, RKE2, k3s, EKS, 等)和版本:RKE2
  • 在线或离线部署:在线

下游集群信息

  • Kubernetes 版本:
  • Cluster Type (Local/Downstream):
    • 如果 Downstream,是什么类型的集群?(自定义/导入或为托管 等):

用户信息

  • 登录用户的角色是什么? (管理员/集群所有者/集群成员/项目所有者/项目成员/自定义):
    • 如果自定义,自定义权限集:

主机操作系统: Ubuntu 20.04

问题描述: rancher local集群安装的是RKE2,但是主机提供商显示为RKE1。现在rancher 2.12版本以上不支持rke。

一年前创建的 RKE2集群

$ curl -sfL http://rancher-mirror.rancher.cn/rke2/install.sh | INSTALL_RKE2_MIRROR=cn INSTALL_RKE2_VERSION=v1.27.16+rke2r2 sh -

helm 安装单节点rancher

$ helm install rancher rancher-stable/rancher --version=2.7.1 --namespace cattle-system --set hostname=rancher.xx.xx --set ingress.tls.source=secret

之后陆续升级了rancher和local的k8s版本,也不知道是升级到哪个版本开始UI上local集群的主机提供商显示为RKE1,但实际部署的是rke2,现在版本升级到2.12.3后,UI上一直有一个警告提示RKE1不再支持。不确定是不是中间升级那个版本有bug导致的?有办法可以修改成RKE2吗?

这个一直显示为RKE1,也会导致在集群管理中,local集群没办法编辑配置来升级集群版本

重现步骤:
我现在安装一个测试的rancher,正常主机提供商应该显示的是RKE2

$ curl -sfL http://rancher-mirror.rancher.cn/rke2/install.sh | INSTALL_RKE2_MIRROR=cn INSTALL_RKE2_VERSION=v1.32.5+rke2r1 sh -

$ helm install rancher rancher-stable/rancher --version=2.11.3 --namespace cattle-system --set hostname=dev-rancher.xx.xx --set ingress.tls.source=secret

结果:

预期结果:

截图:

其他上下文信息:

日志


试一下将 local 集群升级到 v1.31–v1.33 中的任意版本,也许可以解决

我之前升级local集群都是在集群管理上编辑配置进行升级的,但是现在没有编辑配置可以操作了,还能怎样升级呢?

rke2 集群可参考:Upgrading RKE2 Clusters | RKE2

貌似不大行,我升级到v1.32.5+rke2r1显示还是RKE1

$ curl -sfL http://rancher-mirror.rancher.cn/rke2/install.sh | INSTALL_RKE2_MIRROR=cn INSTALL_RKE2_VERSION=v1.32.5+rke2r1 sh -

你在 local 集群节点上执行:kubectl get nodes -o yaml 然后内容粘贴出来

麻烦大佬看一下

$ kubectl get nodes -o yaml
apiVersion: v1
items:
- apiVersion: v1
  kind: Node
  metadata:
    annotations:
      alpha.kubernetes.io/provided-node-ip: 172.16.1.229
      etcd.rke2.cattle.io/local-snapshots-timestamp: "2026-05-19T16:23:34+08:00"
      etcd.rke2.cattle.io/node-address: 172.16.1.229
      etcd.rke2.cattle.io/node-name: sysadm-rancher-c5542dc2
      flannel.alpha.coreos.com/backend-data: '{"VNI":1,"VtepMAC":"5a:56:d2:fc:ec:f0"}'
      flannel.alpha.coreos.com/backend-type: vxlan
      flannel.alpha.coreos.com/kube-subnet-manager: "true"
      flannel.alpha.coreos.com/public-ip: 172.16.1.229
      management.cattle.io/pod-limits: '{"cpu":"200m","memory":"192Mi"}'
      management.cattle.io/pod-requests: '{"cpu":"1675m","memory":"2610Mi","pods":"22"}'
      node.alpha.kubernetes.io/ttl: "0"
      rke2.io/encryption-config-hash: start-f2ea4ed96a62d3024dd77bcc520a3c371e61a080d5352716202b68e582e2b92f
      rke2.io/hostname: sysadm-rancher
      rke2.io/internal-ip: 172.16.1.229
      rke2.io/node-args: '["server","--system-default-registry","docker.m.daocloud.io"]'
      rke2.io/node-config-hash: S2XSYTNZAHCRLGWTKUAYACUIZSFPCIQKZ5I3FEHU3CEK5BTDGHFA====
      rke2.io/node-env: '{}'
      volumes.kubernetes.io/controller-managed-attach-detach: "true"
    creationTimestamp: "2025-06-17T03:09:00Z"
    finalizers:
    - wrangler.cattle.io/managed-etcd-controller
    - wrangler.cattle.io/node
    labels:
      beta.kubernetes.io/arch: amd64
      beta.kubernetes.io/instance-type: rke2
      beta.kubernetes.io/os: linux
      kubernetes.io/arch: amd64
      kubernetes.io/hostname: sysadm-rancher
      kubernetes.io/os: linux
      node-role.kubernetes.io/control-plane: "true"
      node-role.kubernetes.io/etcd: "true"
      node-role.kubernetes.io/master: "true"
      node.kubernetes.io/instance-type: rke2
      plan.upgrade.cattle.io/rke2-master-plan: 62349b6eb6c7002205846fcbebcc3762c209bf3ea0e0925d89db2d30
    name: sysadm-rancher
    resourceVersion: "187544937"
    uid: ee34600f-0b05-473f-8127-f1a0f823a737
  spec:
    podCIDR: 10.42.1.0/24
    podCIDRs:
    - 10.42.1.0/24
    providerID: rke2://sysadm-rancher
  status:
    addresses:
    - address: 172.16.1.229
      type: InternalIP
    - address: sysadm-rancher
      type: Hostname
    allocatable:
      cpu: "2"
      ephemeral-storage: "39858437089"
      hugepages-1Gi: "0"
      hugepages-2Mi: "0"
      memory: 8003908Ki
      pods: "110"
    capacity:
      cpu: "2"
      ephemeral-storage: 40972900Ki
      hugepages-1Gi: "0"
      hugepages-2Mi: "0"
      memory: 8003908Ki
      pods: "110"
    conditions:
    - lastHeartbeatTime: "2026-05-19T06:21:19Z"
      lastTransitionTime: "2026-05-19T06:21:19Z"
      message: Flannel is running on this node
      reason: FlannelIsUp
      status: "False"
      type: NetworkUnavailable
    - lastHeartbeatTime: "2026-05-19T08:25:39Z"
      lastTransitionTime: "2026-05-18T07:56:25Z"
      message: Node is a voting member of the etcd cluster
      reason: MemberNotLearner
      status: "True"
      type: EtcdIsVoter
    - lastHeartbeatTime: "2026-05-19T08:25:38Z"
      lastTransitionTime: "2026-05-19T06:20:35Z"
      message: kubelet has sufficient memory available
      reason: KubeletHasSufficientMemory
      status: "False"
      type: MemoryPressure
    - lastHeartbeatTime: "2026-05-19T08:25:38Z"
      lastTransitionTime: "2026-05-19T06:20:35Z"
      message: kubelet has no disk pressure
      reason: KubeletHasNoDiskPressure
      status: "False"
      type: DiskPressure
    - lastHeartbeatTime: "2026-05-19T08:25:38Z"
      lastTransitionTime: "2026-05-19T06:20:35Z"
      message: kubelet has sufficient PID available
      reason: KubeletHasSufficientPID
      status: "False"
      type: PIDPressure
    - lastHeartbeatTime: "2026-05-19T08:25:38Z"
      lastTransitionTime: "2026-05-19T06:20:35Z"
      message: kubelet is posting ready status
      reason: KubeletReady
      status: "True"
      type: Ready
    daemonEndpoints:
      kubeletEndpoint:
        Port: 10250
    images:
    - names:
      - docker.m.daocloud.io/rancher/rancher@sha256:62ddf1d5357c08bda7c080b5c0909dc4d16d53995b34d6c245812b1307dd1969
      - docker.m.daocloud.io/rancher/rancher:v2.11.3
      sizeBytes: 1064538533
    - names:
      - docker.m.daocloud.io/rancher/rancher-agent@sha256:531266b8818eb397afac9f510602f8d7b3e06f405b6978ef8ad21c8fa88b2abe
      - docker.m.daocloud.io/rancher/rancher-agent:v2.11.3
      sizeBytes: 786471998
    - names:
      - docker.m.daocloud.io/rancher/nginx-ingress-controller@sha256:655c68b3cde63fa3071636983e7fb81f951d4d66d73a08c94eb5b7596930f531
      - docker.m.daocloud.io/rancher/nginx-ingress-controller:v1.12.1-hardened6
      sizeBytes: 303294933
    - names:
      - docker.m.daocloud.io/rancher/hardened-kubernetes@sha256:dd35f7ac517ed162fd56658ea41fb2ddeaaef20c01c80c3bb924353bad304f76
      - docker.m.daocloud.io/rancher/hardened-kubernetes:v1.30.13-rke2r1-build20250515
      sizeBytes: 228871022
    - names:
      - docker.m.daocloud.io/rancher/hardened-calico@sha256:6c5c2bc6d800aee9db8931e8b39012ed66364af2e72f8ef2e06cf0c666057e3c
      - docker.m.daocloud.io/rancher/hardened-calico:v3.30.0-build20250515
      sizeBytes: 226220274
    - names:
      - docker.m.daocloud.io/rancher/hardened-kubernetes@sha256:968e78486923d5e3a3bc2ae11a62c8da897327d1e11d30fdc390c4bd045bf208
      - docker.m.daocloud.io/rancher/hardened-kubernetes:v1.32.5-rke2r1-build20250515
      sizeBytes: 218662448
    - names:
      - docker.m.daocloud.io/rancher/fleet@sha256:609393b2b554db3a55b9033110297e0f18540e6d911c612fe8a25bc51b123066
      - docker.m.daocloud.io/rancher/fleet:v0.12.4
      sizeBytes: 114550292
    - names:
      - docker.m.daocloud.io/rancher/fleet@sha256:3f8e2cb3564c4fac53893fecf18b18ec98481f5bd3e57874a85ba1486b63bfbb
      - docker.m.daocloud.io/rancher/fleet:v0.10.4
      sizeBytes: 107818101
    - names:
      - docker.m.daocloud.io/rancher/shell@sha256:03b134ba9bda3666682434c49f610e44d0e99f0aad265f2f784fa5e39a822bb2
      - docker.m.daocloud.io/rancher/shell:v0.4.1
      sizeBytes: 107517790
    - names:
      - docker.m.daocloud.io/rancher/rke2-runtime@sha256:5dbde46e0b78c3ec3f96f6fd1aaa9aadd7e5cee6aa46f7340961750de812c8ed
      - docker.m.daocloud.io/rancher/rke2-runtime:v1.30.13-rke2r1
      sizeBytes: 101641490
    - names:
      - docker.m.daocloud.io/rancher/rke2-runtime@sha256:d73b6b3420cc9869e698e80870e7cde4bb8b3f2fa851f63ad5ab46a6a4dfd8a7
      - docker.m.daocloud.io/rancher/rke2-runtime:v1.32.5-rke2r1
      sizeBytes: 96566279
    - names:
      - docker.m.daocloud.io/rancher/kuberlr-kubectl@sha256:416dfd59765b0a366932598d48ddfe22aea380909c60e672a77961f64dc02c94
      - docker.m.daocloud.io/rancher/kuberlr-kubectl:v4.0.2
      sizeBytes: 83392767
    - names:
      - docker.m.daocloud.io/rancher/hardened-flannel@sha256:419c5578c821ad80c581c19b0f1f6c26abcfd4285eb4afa19573cda26206ccd2
      - docker.m.daocloud.io/rancher/hardened-flannel:v0.26.7-build20250515
      sizeBytes: 81228988
    - names:
      - docker.m.daocloud.io/rancher/klipper-helm@sha256:0379ae6c5a486118d20837f95c4dc9059d6351556da028e866784b72d7e5ded1
      - docker.m.daocloud.io/rancher/klipper-helm:v0.9.5-build20250306
      sizeBytes: 71064463
    - names:
      - docker.m.daocloud.io/rancher/rke2-upgrade@sha256:932baa4c248e01d781150b72a67b1816ab201ee2dc3cf62e135ff35a1164b4ee
      - docker.m.daocloud.io/rancher/rke2-upgrade:v1.30.13-rke2r1
      sizeBytes: 60145422
    - names:
      - docker.m.daocloud.io/rancher/mirrored-cluster-api-controller@sha256:81138cc74367ec4cab80cca69f73088111ecf89eab52cd72ca0442a905a6340b
      - docker.m.daocloud.io/rancher/mirrored-cluster-api-controller:v1.7.3
      sizeBytes: 37829377
    - names:
      - docker.m.daocloud.io/rancher/mirrored-cluster-api-controller@sha256:855d8532cda70b28ed83eedac09669c843ab5de8fb5f329097799d104de665aa
      - docker.m.daocloud.io/rancher/mirrored-cluster-api-controller:v1.9.5
      sizeBytes: 37265779
    - names:
      - docker.m.daocloud.io/rancher/rancher-webhook@sha256:4684b155db258e525594dc096439aadc9d50108cf15745ed8d3e4b29e4288edf
      - docker.m.daocloud.io/rancher/rancher-webhook:v0.7.3
      sizeBytes: 30033937
    - names:
      - docker.m.daocloud.io/rancher/mirrored-sig-storage-snapshot-controller@sha256:1cda6e2aeae92ad55aa33459b3903850010afce8e12c43842d5a98a0d620c159
      - docker.m.daocloud.io/rancher/mirrored-sig-storage-snapshot-controller:v8.2.0
      sizeBytes: 29129582
    - names:
      - docker.m.daocloud.io/rancher/hardened-coredns@sha256:11de89263073093310c00ead60ce0c4ee497c6fed6cb7e438d290d6cc11ca103
      - docker.m.daocloud.io/rancher/hardened-coredns:v1.12.1-build20250507
      sizeBytes: 28930058
    - names:
      - docker.m.daocloud.io/rancher/fleet-agent@sha256:56367df9870372f2dae5bc1ce37a6d235180a67cff300ee339e3e72a1d9165f1
      - docker.m.daocloud.io/rancher/fleet-agent:v0.12.4
      sizeBytes: 28922988
    - names:
      - docker.m.daocloud.io/rancher/mirrored-ingress-nginx-kube-webhook-certgen@sha256:bef2809291465742d673e8dd4de8c7e49df50b1919219d484109fbfabf51053d
      - docker.m.daocloud.io/rancher/mirrored-ingress-nginx-kube-webhook-certgen:v1.5.2
      sizeBytes: 27466593
    - names:
      - docker.m.daocloud.io/rancher/backup-restore-operator@sha256:9f7e71c4770977730ff244469a2f9a816c8f7ce1017126e640c5fcae007d1444
      - docker.m.daocloud.io/rancher/backup-restore-operator:v7.0.1
      sizeBytes: 27192161
    - names:
      - docker.m.daocloud.io/rancher/mirrored-sig-storage-snapshot-controller@sha256:8776214c491da926a9a808b4ad832c297262defeb2d736240ebed4be8d9f3512
      - docker.m.daocloud.io/rancher/mirrored-sig-storage-snapshot-controller:v6.2.1
      sizeBytes: 24225718
    - names:
      - docker.m.daocloud.io/rancher/rke2-cloud-provider@sha256:7b6516c92f938beca3b1e604895273ca9b32266dc04d94503e3d14c60be4e69d
      - docker.m.daocloud.io/rancher/rke2-cloud-provider:v1.32.0-rc3.0.20241220224140-68fbd1a6b543-build20250101
      sizeBytes: 22542818
    - names:
      - docker.m.daocloud.io/rancher/rke2-cloud-provider@sha256:3035733c71a74c3c5c9e8d04a9e4089bb6e49f33de5bc1e9cd0a1888419b82e2
      - docker.m.daocloud.io/rancher/rke2-cloud-provider:v1.30.6-0.20241016053533-5ec454f50e7a-build20241016
      sizeBytes: 21339966
    - names:
      - docker.m.daocloud.io/rancher/mirrored-sig-storage-snapshot-validation-webhook@sha256:5eb55a850de857d72bc5827aed89230b61eb309e1ab1c5bbf0c3c48ad7a6a679
      - docker.m.daocloud.io/rancher/mirrored-sig-storage-snapshot-validation-webhook:v6.2.2
      sizeBytes: 21209410
    - names:
      - docker.m.daocloud.io/rancher/rke2-cloud-provider@sha256:56663653afb18605c86268190bc23199faec9d7f7fb373da8c96110177d12731
      - docker.m.daocloud.io/rancher/rke2-cloud-provider:v1.29.3-build20240515
      sizeBytes: 20235625
    - names:
      - docker.m.daocloud.io/rancher/hardened-k8s-metrics-server@sha256:de0f250fd5be6bfcd45614022d1636fd83c876c7ef36f2cb39fd446d302e5874
      - docker.m.daocloud.io/rancher/hardened-k8s-metrics-server:v0.7.2-build20250507
      sizeBytes: 18973128
    - names:
      - docker.m.daocloud.io/rancher/hardened-k8s-metrics-server@sha256:0efa16c62440915c7e077e1bacfcb7d9ef54e8f9b890d19369be8771096e655b
      - docker.m.daocloud.io/rancher/hardened-k8s-metrics-server:v0.7.1-build20240401
      sizeBytes: 18408323
    - names:
      - docker.m.daocloud.io/rancher/hardened-etcd@sha256:114c04d38ea46605a80369d63ba626e02a3ccb26a774ce3754e948e190fac67f
      - docker.m.daocloud.io/rancher/hardened-etcd:v3.5.21-k3s1-build20250411
      sizeBytes: 17699491
    - names:
      - docker.m.daocloud.io/rancher/kubectl@sha256:538215c4f7015c7c566ca4a77f6f98253a2acc9133789857f94d761eecdb4b36
      - docker.m.daocloud.io/rancher/kubectl:v1.32.2
      sizeBytes: 17266307
    - names:
      - docker.m.daocloud.io/rancher/hardened-etcd@sha256:3d27d316d2ae243400c9aa16d91c5b4cb90733c2e89232329e4500bd1255f34a
      - docker.m.daocloud.io/rancher/hardened-etcd:v3.5.13-k3s1-build20240531
      sizeBytes: 17229361
    - names:
      - docker.m.daocloud.io/rancher/kubectl@sha256:1de1109112fe7c0e5601032b2c7f7f447a24adc85601df712cebb7c702734a87
      - docker.m.daocloud.io/rancher/kubectl:v1.29.2
      sizeBytes: 15888390
    - names:
      - docker.m.daocloud.io/rancher/system-upgrade-controller@sha256:3e899833afcea9a8788d384ce976df9a05be84636fe5c01ec2307b5bd8fe9810
      - docker.m.daocloud.io/rancher/system-upgrade-controller:v0.15.2
      sizeBytes: 14162664
    - names:
      - docker.m.daocloud.io/rancher/hardened-cluster-autoscaler@sha256:3633763e3e342ee88ceabcf2894f5d40471fc83e6462f39097753cea926ffddd
      - docker.m.daocloud.io/rancher/hardened-cluster-autoscaler:v1.10.2-build20250507
      sizeBytes: 14086072
    - names:
      - docker.m.daocloud.io/rancher/kubectl@sha256:e7c9f61123e2253cf037f00879cfe253e1d544543ad6026cceb6135c3a4d2e22
      - docker.m.daocloud.io/rancher/kubectl:v1.23.3
      sizeBytes: 13481666
    - names:
      - docker.m.daocloud.io/rancher/system-upgrade-controller@sha256:3df6d01b9eb583a78c309ce0b2cfeed98a9af97983e4ea96bf53410dd56c6f45
      - docker.m.daocloud.io/rancher/system-upgrade-controller:v0.13.4
      sizeBytes: 10959587
    - names:
      - docker.m.daocloud.io/rancher/mirrored-pause@sha256:74c4244427b7312c5b901fe0f67cbc53683d06f4f24c6faee65d4182bf0fa893
      - docker.m.daocloud.io/rancher/pause@sha256:036d575e82945c112ef84e4585caff3648322a2f9ed4c3a6ce409dd10abc4f34
      - docker.m.daocloud.io/rancher/mirrored-pause:3.6
      - docker.m.daocloud.io/rancher/pause:3.6
      sizeBytes: 301463
    nodeInfo:
      architecture: amd64
      bootID: f2961972-dfb1-497c-b095-39571b974f0c
      containerRuntimeVersion: containerd://2.0.5-k3s1
      kernelVersion: 5.4.0-186-generic
      kubeProxyVersion: v1.32.5+rke2r1
      kubeletVersion: v1.32.5+rke2r1
      machineID: 000c684fd9690000000a83fc00ff457f
      operatingSystem: linux
      osImage: Ubuntu 20.04.5 LTS
      systemUUID: 000c6a0a-c55f-0000-0008-c79d00acc4c9
    runtimeHandlers:
    - features:
        recursiveReadOnlyMounts: false
        userNamespaces: false
      name: runhcs-wcow-process
    - features:
        recursiveReadOnlyMounts: false
        userNamespaces: true
      name: runc
    - features:
        recursiveReadOnlyMounts: false
        userNamespaces: true
      name: ""
kind: List
metadata:
  resourceVersion: ""

kubectl get clusters.management.cattle.io local -o yaml

看下这个 yaml 重点关注下 spec.rancherKubernetesEngineConfig 和 labels[‘provider.cattle.io’]

正常感觉是这个 labels 影响的应该一直是 rke,切换成 rke2 试下

感谢大佬,provider.cattle.io真的是rke,我edit修改为rke2后可以了!

kubectl get clusters.management.cattle.io local -o yaml
apiVersion: management.cattle.io/v3
kind: Cluster
metadata:
  annotations:
    authz.management.cattle.io/creator-role-bindings: '{"created":["cluster-owner"],"required":["cluster-owner"]}'
    authz.management.cattle.io/initial-sync: "true"
    field.cattle.io/creatorId: user-rd4gh
    io.cattle.agent.force.deploy: "true"
    lifecycle.cattle.io/create.cluster-agent-controller-cleanup: "true"
    lifecycle.cattle.io/create.cluster-provisioner-controller: "true"
    lifecycle.cattle.io/create.cluster-scoped-gc: "true"
    lifecycle.cattle.io/create.mgmt-cluster-rbac-remove: "true"
    management.cattle.io/current-cluster-controllers-version: 1.32.5+rke2r1
    provisioner.cattle.io/encrypt-migrated: "true"
    provisioner.cattle.io/ke-driver-update: updated
    rancher.io/imported-cluster-version-management: system-default
  creationTimestamp: "2025-06-17T03:23:21Z"
  finalizers:
  - controller.cattle.io/cluster-agent-controller-cleanup
  - controller.cattle.io/cluster-scoped-gc
  - controller.cattle.io/cluster-provisioner-controller
  - controller.cattle.io/mgmt-cluster-rbac-remove
  - wrangler.cattle.io/mgmt-cluster-remove
  generation: 639
  labels:
    provider.cattle.io: rke
  name: local
  resourceVersion: "187505622"
  uid: 411c622a-d726-4855-91ee-b9b53628e732
spec:
  agentImageOverride: ""
  answers: {}
  clusterSecrets: {}
  description: ""
  desiredAgentImage: ""
  desiredAuthImage: ""
  displayName: local
  dockerRootDir: /var/lib/docker
  enableNetworkPolicy: null
  fleetWorkspaceName: fleet-local
  internal: true
  localClusterAuthEndpoint:
    enabled: false
  rke2Config:
    kubernetesVersion: v1.30.13+rke2r1
    rke2upgradeStrategy:
      serverConcurrency: 1
      workerConcurrency: 1
  windowsPreferedCluster: false
status:
  agentImage: ""
  aksStatus:
    privateRequiresTunnel: null
    rbacEnabled: null
    upstreamSpec: null
  allocatable:
    cpu: "2"
    memory: 8003908Ki
    pods: "110"
  appliedEnableNetworkPolicy: false
  appliedSpec:
    agentImageOverride: ""
    answers: {}
    clusterSecrets: {}
    description: ""
    desiredAgentImage: ""
    desiredAuthImage: ""
    displayName: ""
    enableNetworkPolicy: null
    internal: false
    localClusterAuthEndpoint:
      enabled: false
    windowsPreferedCluster: false
  authImage: ""
  capabilities:
    loadBalancerCapabilities: {}
  capacity:
    cpu: "2"
    memory: 8003908Ki
    pods: "110"
  certificatesExpiration:
    kube-apiserver:
      expirationDate: "2034-03-05T06:08:19Z"
    kube-apiserver-proxy-client:
      expirationDate: "2034-03-05T06:08:20Z"
    kube-ca:
      expirationDate: "2034-03-05T06:08:19Z"
    kube-controller-manager:
      expirationDate: "2034-03-05T06:08:19Z"
    kube-etcd-172-16-1-12:
      expirationDate: "2034-03-05T06:08:20Z"
    kube-node:
      expirationDate: "2034-03-05T06:08:20Z"
    kube-proxy:
      expirationDate: "2034-03-05T06:08:20Z"
    kube-scheduler:
      expirationDate: "2034-03-05T06:08:19Z"
  conditions:
  - lastUpdateTime: "2026-05-19T06:22:01Z"
    status: "True"
    type: Ready
  - lastUpdateTime: "2021-04-16T09:25:18Z"
    status: "True"
    type: BackingNamespaceCreated
  - lastUpdateTime: "2022-03-17T02:41:44Z"
    status: "True"
    type: DefaultProjectCreated
  - lastUpdateTime: "2022-03-17T02:41:44Z"
    status: "True"
    type: SystemProjectCreated
  - lastUpdateTime: "2021-04-16T09:25:25Z"
    status: "True"
    type: InitialRolesPopulated
  - lastUpdateTime: "2021-04-16T09:25:28Z"
    status: "True"
    type: CreatorMadeOwner
  - lastUpdateTime: "2021-04-16T09:28:00Z"
    status: "True"
    type: Pending
  - lastUpdateTime: "2021-04-16T11:00:03Z"
    status: "True"
    type: Provisioned
  - lastUpdateTime: "2021-04-16T11:00:15Z"
    status: "True"
    type: Waiting
  - lastUpdateTime: "2021-04-16T09:28:14Z"
    status: "True"
    type: NoDiskPressure
  - lastUpdateTime: "2021-04-16T09:28:14Z"
    status: "True"
    type: NoMemoryPressure
  - lastUpdateTime: "2021-04-16T10:59:45Z"
    status: "False"
    type: PrometheusOperatorDeployed
  - lastUpdateTime: "2021-04-16T10:59:56Z"
    status: "True"
    type: GlobalAdminsSynced
  - lastUpdateTime: "2021-04-16T10:59:57Z"
    status: "False"
    type: AlertingEnabled
  - lastUpdateTime: "2021-04-16T11:00:01Z"
    status: "True"
    type: SystemAccountCreated
  - lastUpdateTime: "2021-04-16T11:00:04Z"
    status: "True"
    type: Updated
  - lastUpdateTime: "2022-06-22T08:45:23Z"
    status: "True"
    type: SecretsMigrated
  - lastUpdateTime: "2023-02-14T01:54:31Z"
    status: "True"
    type: ServiceAccountSecretsMigrated
  - lastUpdateTime: "2023-02-14T01:54:33Z"
    status: "True"
    type: RKESecretsMigrated
  - lastUpdateTime: "2023-02-14T01:54:36Z"
    status: "True"
    type: Connected
  - lastUpdateTime: "2025-06-23T01:54:47Z"
    status: "True"
    type: ACISecretsMigrated
  - lastUpdateTime: "2025-07-10T04:03:57Z"
    status: "True"
    type: Upgraded
  - status: Unknown
    type: PreBootstrapped
  driver: rke2
  eksStatus:
    generatedNodeRole: ""
    managedLaunchTemplateID: ""
    managedLaunchTemplateVersions: null
    privateRequiresTunnel: null
    securityGroups: null
    subnets: null
    upstreamSpec: null
    virtualNetwork: ""
  gkeStatus:
    privateRequiresTunnel: null
    upstreamSpec: null
  limits:
    cpu: 200m
    memory: 192Mi
    pods: "0"
  linuxWorkerCount: 1
  nodeCount: 1
  provider: rke
  requested:
    cpu: 1675m
    memory: 2610Mi
    pods: "22"
  version:
    buildDate: "2025-05-15T18:43:47Z"
    compiler: gc
    gitCommit: 9894294ef13a5b32803e3ca2c0d620a088cc84d1
    gitTreeState: clean
    gitVersion: v1.32.5+rke2r1
    goVersion: go1.23.8 X:boringcrypto
    major: "1"
    minor: "32"
    platform: linux/amd64

但是貌似又有个问题,我上面按照ksd大佬用命令升级了local集群版本后,现在集群管理上编辑集群,貌似版本没有同步上,编辑上面显示的还是旧版本

升级没从 ui 上面升级 rancher 应该是检测不到。你可以直接从 ui 上改成你当前版本试下,正常改过来应该就没问题了。 @ksd 大佬是这样吧

ui上直接修改版本就可以了!!非常感谢两位大佬给我解决了问题 :+1: