From e9048afbbc81206de4ef5c2f315db83b9678391f Mon Sep 17 00:00:00 2001 From: Dimitrios Karagiannis Date: Tue, 19 Sep 2017 11:44:36 +0100 Subject: [PATCH] worker kubelet should restart kube-proxy --- resources/master-kubelet.service | 4 ++-- resources/worker-kubelet.service | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/master-kubelet.service b/resources/master-kubelet.service index 917c8ab..7610774 100644 --- a/resources/master-kubelet.service +++ b/resources/master-kubelet.service @@ -22,8 +22,8 @@ ExecStartPre=/usr/bin/mkdir -p /var/lib/cni ExecStartPre=/usr/bin/mkdir -p /etc/cni/net.d ExecStartPre=/opt/bin/cfssl-sk-get ExecStartPre=/opt/bin/cfssl-new-cert -ExecStartPre=-/bin/sh -c "docker stop $(docker ps --no-trunc | grep '/hyperkube controller-manager' | awk '{ print $1; '})" -ExecStartPre=-/bin/sh -c "docker stop $(docker ps --no-trunc | grep '/hyperkube apiserver' | awk '{ print $1; '})" +ExecStartPre=-/bin/sh -c "docker restart $(docker ps --no-trunc | grep '/hyperkube controller-manager' | awk '{ print $1; '})" +ExecStartPre=-/bin/sh -c "docker restart $(docker ps --no-trunc | grep '/hyperkube apiserver' | awk '{ print $1; '})" ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid ExecStart=/usr/lib/coreos/kubelet-wrapper \ --require-kubeconfig=true \ diff --git a/resources/worker-kubelet.service b/resources/worker-kubelet.service index 550a712..79fe7df 100644 --- a/resources/worker-kubelet.service +++ b/resources/worker-kubelet.service @@ -24,6 +24,7 @@ ExecStartPre=/usr/bin/mkdir -p /var/log/containers ExecStartPre=/usr/bin/mkdir -p /opt/cni/bin ExecStartPre=/usr/bin/mkdir -p /var/lib/cni ExecStartPre=/usr/bin/mkdir -p /etc/cni/net.d +ExecStartPre=-/bin/sh -c "docker restart $(docker ps --no-trunc | grep '/hyperkube proxy' | awk '{ print $1; '})" ExecStartPre=/opt/bin/cfssl-new-cert ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/run/kubelet-pod.uuid ExecStart=/usr/lib/coreos/kubelet-wrapper \