From 319a0d65af2e0fac4e64257f30a7e63fd4da4760 Mon Sep 17 00:00:00 2001 From: Amit Kumar Jaiswal Date: Mon, 3 Jul 2017 16:23:35 +0530 Subject: [PATCH] Update kubelet.j2 Updated with closing endif. --- roles/kubernetes/node/templates/kubelet.j2 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/kubernetes/node/templates/kubelet.j2 b/roles/kubernetes/node/templates/kubelet.j2 index a8174c769..8c0ea94b5 100644 --- a/roles/kubernetes/node/templates/kubelet.j2 +++ b/roles/kubernetes/node/templates/kubelet.j2 @@ -16,7 +16,9 @@ KUBELET_HOSTNAME="--hostname-override={{ ansible_hostname }}" {% if kube_version | version_compare('v1.6', '>=') %} {# flag got removed with 1.7.0 #} {% if kube_version | version_compare('v1.7', '<') %} ---enable-cri={{ kubelet_enable_cri }} --cgroups-per-qos={{ kubelet_cgroups_per_qos }} \ +--enable-cri={{ kubelet_enable_cri }} \ +{% endif %} +--cgroups-per-qos={{ kubelet_cgroups_per_qos }} \ --enforce-node-allocatable='{{ kubelet_enforce_node_allocatable }}' {% endif %}{% endset %} {# DNS settings for kubelet #}