Skip to content

Commit

Permalink
Explicitly restart Kubelet on upgrade for Ubuntu (#1098)
Browse files Browse the repository at this point in the history
* Explicitly restart Kubelet on upgrade for Ubuntu

* Update test fixtures
  • Loading branch information
xmudrii authored Sep 9, 2020
1 parent 99fe9e2 commit 1ec1efd
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/scripts/os.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ sudo apt-mark hold docker-ce docker-ce-cli kubelet kubeadm kubectl kubernetes-cn
sudo systemctl daemon-reload
sudo systemctl enable --now docker
sudo systemctl enable --now kubelet
{{- if or .FORCE .KUBELET }}
sudo systemctl restart kubelet
{{- end }}
`

kubeadmCentOSTemplate = `
Expand Down
1 change: 1 addition & 0 deletions pkg/scripts/testdata/TestKubeadmDebian-simple.golden
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@ sudo apt-mark hold docker-ce docker-ce-cli kubelet kubeadm kubectl kubernetes-cn
sudo systemctl daemon-reload
sudo systemctl enable --now docker
sudo systemctl enable --now kubelet
sudo systemctl restart kubelet
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,4 @@ sudo apt-mark hold docker-ce docker-ce-cli kubelet kubeadm kubectl kubernetes-cn
sudo systemctl daemon-reload
sudo systemctl enable --now docker
sudo systemctl enable --now kubelet
sudo systemctl restart kubelet

0 comments on commit 1ec1efd

Please sign in to comment.