kubeadm 部署的k8s 预留kubelet资源

kubeadm 部署的k8s 预留kubelet资源

计算规则参考:https://cloud.tencent.com/document/product/457/76057

vim /var/lib/kubelet/config.yaml
# 在最底下加入需要预留的资源
enforceNodeAllocatable:
- pods
kubeReserved:  # 配置 kube 资源预留
  cpu: 300m
  memory: 1Gi
  ephemeral-storage: 1Gi
systemReserved:  # 配置系统资源预留
  memory: 1Gi
evictionHard:  # 配置硬驱逐阈值
  memory.available: "300Mi"
  nodefs.available: "10%"
posted @ 2023-08-25 16:25  taotaozh  阅读(79)  评论(0编辑  收藏  举报