From 23b56e3f89b5a53e7b377158198b4da1fce5cef2 Mon Sep 17 00:00:00 2001 From: Lihai Tu <92532497+tu1h@users.noreply.github.com> Date: Thu, 25 Apr 2024 15:32:06 +0800 Subject: [PATCH] Enclose the cpu type with quotation marks in kubelet-config.v1beta1 (#11111) Signed-off-by: tu1h --- .../node/templates/kubelet-config.v1beta1.yaml.j2 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 b/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 index 3d76ba485..1a664a0ed 100644 --- a/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 +++ b/roles/kubernetes/node/templates/kubelet-config.v1beta1.yaml.j2 @@ -64,7 +64,7 @@ clusterDNS: kubeReservedCgroup: {{ kube_reserved_cgroups }} kubeReserved: {% if is_kube_master | bool %} - cpu: {{ kube_master_cpu_reserved }} + cpu: "{{ kube_master_cpu_reserved }}" memory: {{ kube_master_memory_reserved }} {% if kube_master_ephemeral_storage_reserved is defined %} ephemeral-storage: {{ kube_master_ephemeral_storage_reserved }} @@ -73,7 +73,7 @@ kubeReserved: pid: "{{ kube_master_pid_reserved }}" {% endif %} {% else %} - cpu: {{ kube_cpu_reserved }} + cpu: "{{ kube_cpu_reserved }}" memory: {{ kube_memory_reserved }} {% if kube_ephemeral_storage_reserved is defined %} ephemeral-storage: {{ kube_ephemeral_storage_reserved }} @@ -87,7 +87,7 @@ kubeReserved: systemReservedCgroup: {{ system_reserved_cgroups }} systemReserved: {% if is_kube_master | bool %} - cpu: {{ system_master_cpu_reserved }} + cpu: "{{ system_master_cpu_reserved }}" memory: {{ system_master_memory_reserved }} {% if system_master_ephemeral_storage_reserved is defined %} ephemeral-storage: {{ system_master_ephemeral_storage_reserved }} @@ -96,7 +96,7 @@ systemReserved: pid: "{{ system_master_pid_reserved }}" {% endif %} {% else %} - cpu: {{ system_cpu_reserved }} + cpu: "{{ system_cpu_reserved }}" memory: {{ system_memory_reserved }} {% if system_ephemeral_storage_reserved is defined %} ephemeral-storage: {{ system_ephemeral_storage_reserved }}