修改kubelet pod数量 并在启动命令尾部添加变量 $KUBELET_NODE_MAX_PODS 如下:
重启kubelet:
[root@k8s02 ~]# systemctl daemon-reload && systemctl restart kubelet
检查结果:
[root@k8s02 ~]# kubectl describe node k8s02 | grep pods
pods: 150
pods: 150
[root@k8s02 ~]#