Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/kubernetes/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure 如何限制Kubernetes上每个节点的可分配内存?_Azure_Kubernetes_Limit_Quotas - Fatal编程技术网

Azure 如何限制Kubernetes上每个节点的可分配内存?

Azure 如何限制Kubernetes上每个节点的可分配内存?,azure,kubernetes,limit,quotas,Azure,Kubernetes,Limit,Quotas,我想限制Kubernetes上每个节点(VM)的可分配内存 现在看来,某些豆荚可能会超过虚拟机的内存限制,使其无响应,而不是在此之前杀死豆荚。请参阅 在systemd中,我们可以使用如下节点可分配特性配置kubelet $ cat > /etc/systemd/system/kubelet.service.d/20-node-eviction.conf <<EOF Environment="KUBELET_EXTRA_ARGS=--eviction-hard=memory.av

我想限制Kubernetes上每个节点(VM)的可分配内存

现在看来,某些豆荚可能会超过虚拟机的内存限制,使其无响应,而不是在此之前杀死豆荚。

请参阅

在systemd中,我们可以使用如下节点可分配特性配置kubelet

$ cat > /etc/systemd/system/kubelet.service.d/20-node-eviction.conf <<EOF
Environment="KUBELET_EXTRA_ARGS=--eviction-hard=memory.available<500Mi --system-reserved=memory=1Gi"
EOF
$ systemctl daemon-reload
$cat>/etc/systemd/system/kubelet.service.d/20-node-execision.conf