From 9506c2e5974f4b5912cd210604bd70ac058d8498 Mon Sep 17 00:00:00 2001 From: abelgana <32614067+abelgana@users.noreply.github.com> Date: Tue, 9 Jan 2018 14:33:05 -0500 Subject: [PATCH] require-kubeconfig is deprecated since K8s v1.8 --- roles/kubernetes/node/templates/kubelet.kubeadm.env.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/roles/kubernetes/node/templates/kubelet.kubeadm.env.j2 b/roles/kubernetes/node/templates/kubelet.kubeadm.env.j2 index 564160b61..b4cd0ce6e 100644 --- a/roles/kubernetes/node/templates/kubelet.kubeadm.env.j2 +++ b/roles/kubernetes/node/templates/kubelet.kubeadm.env.j2 @@ -17,7 +17,9 @@ KUBELET_HOSTNAME="--hostname-override={{ kube_override_hostname }}" {# start kubeadm specific settings #} --bootstrap-kubeconfig=/etc/kubernetes/bootstrap-kubelet.conf \ --kubeconfig={{ kube_config_dir }}/kubelet.conf \ +{% if kube_version | version_compare('v1.8', '<') %} --require-kubeconfig \ +{% endif %} --authorization-mode=Webhook \ --client-ca-file={{ kube_cert_dir }}/ca.crt \ --pod-manifest-path={{ kube_manifest_dir }} \