Skip to content

Commit

Permalink
Merge pull request #2 from utilitywarehouse/cfssl
Browse files Browse the repository at this point in the history
worker kubelet should restart kube-proxy
  • Loading branch information
alkar authored Sep 19, 2017
2 parents 106c4e5 + e9048af commit d1466e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/master-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
1 change: 1 addition & 0 deletions resources/worker-kubelet.service
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down

0 comments on commit d1466e8

Please sign in to comment.