From 240e7c532dd2608dfdaa940a2444a6c5ef134a52 Mon Sep 17 00:00:00 2001 From: Sergio Millan Date: Wed, 11 Oct 2017 15:40:59 +0100 Subject: [PATCH] Adding missing socat binary path for host kubelet deployment type in CoreOS --- roles/kubernetes/node/templates/kubelet.host.service.j2 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/roles/kubernetes/node/templates/kubelet.host.service.j2 b/roles/kubernetes/node/templates/kubelet.host.service.j2 index be43934ea..a413bdc7b 100644 --- a/roles/kubernetes/node/templates/kubelet.host.service.j2 +++ b/roles/kubernetes/node/templates/kubelet.host.service.j2 @@ -6,6 +6,9 @@ Wants=docker.socket [Service] EnvironmentFile=-{{kube_config_dir}}/kubelet.env +{% if ansible_os_family in ["CoreOS", "Container Linux by CoreOS"] %} +Environment="PATH=/usr/local/sbin:/usr/sbin:/usr/bin:/sbin:/bin:{{ bin_dir }}" +{% endif %} ExecStart={{ bin_dir }}/kubelet \ $KUBE_LOGTOSTDERR \ $KUBE_LOG_LEVEL \