diff --git a/roles/kubernetes/node/templates/kubelet.j2 b/roles/kubernetes/node/templates/kubelet.j2 index a9ecce448..2e71dad41 100644 --- a/roles/kubernetes/node/templates/kubelet.j2 +++ b/roles/kubernetes/node/templates/kubelet.j2 @@ -23,6 +23,7 @@ KUBELET_HOSTNAME="--hostname-override={{ ansible_hostname }}" {% endif %} {% if not standalone_kubelet|bool %} {% set kubelet_args %}--kubeconfig={{ kube_config_dir}}/node-kubeconfig.yaml --require-kubeconfig {{ kubelet_args_dns }}{% endset %} +KUBELET_REGISTER_NODE="--register-node=true --register-schedulable=false" {% else %} {% set kubelet_args = kubelet_args_dns %} {% endif %}