From d4e0fb313468e6923fd3d06974d376e7f7e8a111 Mon Sep 17 00:00:00 2001 From: Peter Idah Date: Mon, 19 Feb 2018 20:05:06 +0000 Subject: [PATCH 1/2] set kubelet defaults for --cgroups-per-qos & --enforce-node-allocatable --- pkg/acsengine/defaults-kubelet.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/acsengine/defaults-kubelet.go b/pkg/acsengine/defaults-kubelet.go index d2df9bfdf2..22abe02606 100644 --- a/pkg/acsengine/defaults-kubelet.go +++ b/pkg/acsengine/defaults-kubelet.go @@ -18,8 +18,8 @@ func setKubeletConfig(cs *api.ContainerService) { "--client-ca-file": "/etc/kubernetes/certs/ca.crt", "--pod-manifest-path": "/etc/kubernetes/manifests", "--cluster-dns": o.KubernetesConfig.DNSServiceIP, - "--cgroups-per-qos": "false", - "--enforce-node-allocatable": "", + "--cgroups-per-qos": "true", + "--enforce-node-allocatable": "pods", "--kubeconfig": "/var/lib/kubelet/kubeconfig", "--azure-container-registry-config": "/etc/kubernetes/azure.json", "--keep-terminated-pod-volumes": "false", From 4c815f387863361f3c179df51f04939e54fbc234 Mon Sep 17 00:00:00 2001 From: Jack Francis Date: Tue, 20 Feb 2018 10:20:30 -0800 Subject: [PATCH 2/2] update docs --- docs/clusterdefinition.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/clusterdefinition.md b/docs/clusterdefinition.md index 920164249f..9182d56a17 100644 --- a/docs/clusterdefinition.md +++ b/docs/clusterdefinition.md @@ -181,8 +181,8 @@ Below is a list of kubelet options that are *not* currently user-configurable, e |"--pod-manifest-path"|"/etc/kubernetes/manifests"| |"--network-plugin"|"cni"| |"--node-labels"|(based on Azure node metadata)| -|"--cgroups-per-qos"|"false"| -|"--enforce-node-allocatable"|""| +|"--cgroups-per-qos"|"true"| +|"--enforce-node-allocatable"|"pods"| |"--kubeconfig"|"/var/lib/kubelet/kubeconfig"| |"--register-node" (master nodes only)|"true"| |"--register-with-taints" (master nodes only)|"node-role.kubernetes.io/master=true:NoSchedule"|