Commit ec1fcbed authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #47170 from ktsakalozos/bug/restart

Automatic merge from submit-queue (batch tested with PRs 47860, 47170) Fix restart action on juju kubernetes-master **What this PR does / why we need it**: Restart action of kubernetes-master of Juju is not functioning. **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/299 **Special notes for your reviewer**: **Release note**: ``` Fix: Restart action of juju's kubernetes-master restarts the respective snap based services ```
parents 93ef2f2f 1b88d08e
......@@ -4,14 +4,11 @@ set +ex
# Restart the apiserver, controller-manager, and scheduler
systemctl restart kube-apiserver
systemctl restart snap.kube-apiserver.daemon
action-set apiserver.status='restarted'
action-set 'apiserver.status' 'restarted'
systemctl restart snap.kube-controller-manager.daemon
action-set controller-manager.status='restarted'
systemctl restart kube-controller-manager
action-set 'controller-manager.status' 'restarted'
systemctl restart kube-scheduler
action-set 'kube-scheduler.status' 'restarted'
systemctl restart snap.kube-scheduler.daemon
action-set kube-scheduler.status='restarted'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment