From ebd71f6ad7a210535d5391d02948324032a970eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A3=20=E8=88=AA?= Date: Mon, 4 Sep 2023 14:39:48 +0800 Subject: [PATCH] Fix Typo kubelet_topology_manager_policy (#10384) Signed-off-by: hang.jiang --- docs/vars.md | 2 +- .../node/templates/kubelet-config.v1beta1.yaml.j2 | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/vars.md b/docs/vars.md index 32b7eca74..3431d5194 100644 --- a/docs/vars.md +++ b/docs/vars.md @@ -218,7 +218,7 @@ Stack](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/dns-stack.m * *kubelet_cpu_manager_policy* - If set to `static`, allows pods with certain resource characteristics to be granted increased CPU affinity and exclusivity on the node. And it should be set with `kube_reserved` or `system-reserved`, enable this with the following guide:[Control CPU Management Policies on the Node](https://kubernetes.io/docs/tasks/administer-cluster/cpu-management-policies/) -* *kubelet_topoloy_manager_policy* - Control the behavior of the allocation of CPU and Memory from different [NUMA](https://en.wikipedia.org/wiki/Non-uniform_memory_access) Nodes. Enable this with the following guide: [Control Topology Management Policies on a node](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). +* *kubelet_topology_manager_policy* - Control the behavior of the allocation of CPU and Memory from different [NUMA](https://en.wikipedia.org/wiki/Non-uniform_memory_access) Nodes. Enable this with the following guide: [Control Topology Management Policies on a node](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager). * *kubelet_topology_manager_scope* - The Topology Manager can deal with the alignment of resources in a couple of distinct scopes: `container` and `pod`. See [Topology Manager Scopes](https://kubernetes.io/docs/tasks/administer-cluster/topology-manager/#topology-manager-scopes). diff --git a/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 b/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 index 701d2f677..f54d1f8b3 100644 --- a/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 +++ b/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 @@ -162,9 +162,9 @@ seccompDefault: {{ kubelet_seccomp_default | bool }} {% if kubelet_cpu_manager_policy is defined %} cpuManagerPolicy: {{ kubelet_cpu_manager_policy }} {% endif %} -{% if kubelet_topoloy_manager_policy is defined %} -topologyManagerPolicy: {{ kubelet_topoloy_manager_policy }} +{% if kubelet_topology_manager_policy is defined %} +topologyManagerPolicy: {{ kubelet_topology_manager_policy }} {% endif %} {% if kubelet_topology_manager_scope is defined %} topologyManagerScope: {{ kubelet_topology_manager_scope }} -{% endif %} \ No newline at end of file +{% endif %}