环境信息:
RKE2 版本:
rke2 version v1.30.7+rke2r1 (fdbf8d58f402be2c83f8fd630d4e16203bbebc73)
go version go1.22.8 X:boringcrypto
节点 CPU 架构,操作系统和版本:
Linux k8s-1 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
集群配置:
3 servers
问题描述:
我需要调整management.cattle.io/pod-limits值
重现步骤:
kubectl get node k8s-2 -o json | jq ‘.metadata.annotations’
{
“etcd.rke2.cattle.io/local-snapshots-timestamp”: “2025-01-18T15:39:45+08:00”,
“etcd.rke2.cattle.io/node-name”: “k8s-2-596833a3”,
“flannel.alpha.coreos.com/backend-data”: “{"VNI":1,"VtepMAC":"3a:e9:c1:0e:da:e2"}”,
“flannel.alpha.coreos.com/backend-type”: “vxlan”,
“flannel.alpha.coreos.com/kube-subnet-manager”: “true”,
“management.cattle.io/pod-limits”: “{"cpu":"1100m","memory":"628Mi"}”,
kubectl annotate node node名 management.cattle.io/pod-limits=‘{“cpu”:“1100m”,“memory”:“2024Mi”}’ --overwrite
预期结果:
修改 “management.cattle.io/pod-limits”: “{"cpu":"1100m","memory":"628Mi"}”,中的628Mi为2048Mi
实际结果:
628Mi值未变化