From 1c8e8907c9158945f787f74496bbc0c36f8a6d1a Mon Sep 17 00:00:00 2001 From: Dominika Krzyszczyk Date: Fri, 9 Dec 2016 16:25:20 +0100 Subject: [PATCH] Register master node in API server --- roles/kubernetes/node/templates/kubelet.j2 | 1 + 1 file changed, 1 insertion(+) 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 %}