From fc57c0b27ea9506ccfb06e83c471359a9bb145f4 Mon Sep 17 00:00:00 2001 From: cleverhu <hu928973510@gmail.com> Date: Tue, 13 Sep 2022 15:09:05 +0800 Subject: [PATCH] fix number node name can't be added (#9266) Signed-off-by: cleverhu <shouping.hu@daocloud.io> Signed-off-by: cleverhu <shouping.hu@daocloud.io> --- .../kubernetes/kubeadm/templates/kubeadm-client.conf.v1beta3.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/kubernetes/kubeadm/templates/kubeadm-client.conf.v1beta3.j2 b/roles/kubernetes/kubeadm/templates/kubeadm-client.conf.v1beta3.j2 index f9b31dc73..d35409b13 100644 --- a/roles/kubernetes/kubeadm/templates/kubeadm-client.conf.v1beta3.j2 +++ b/roles/kubernetes/kubeadm/templates/kubeadm-client.conf.v1beta3.j2 @@ -19,7 +19,7 @@ discovery: tlsBootstrapToken: {{ kubeadm_token }} caCertPath: {{ kube_cert_dir }}/ca.crt nodeRegistration: - name: {{ kube_override_hostname }} + name: '{{ kube_override_hostname }}' criSocket: {{ cri_socket }} {% if 'calico_rr' in group_names and 'kube_node' not in group_names %} taints: -- GitLab