democratize restart-apiserver method across clouds

This commit is contained in:
Rajat Chopra
2015-02-11 13:41:42 -08:00
parent 55e8357c0f
commit 56462c020a
5 changed files with 18 additions and 6 deletions

View File

@@ -214,6 +214,12 @@ function restart-kube-proxy() {
ssh-to-node "$1" "sudo /etc/init.d/kube-proxy restart"
}
# Restart the kube-proxy on master ($1)
function restart-apiserver() {
echo "... in restart-kube-apiserver()" >&2
ssh-to-node "$1" "sudo /etc/init.d/kube-apiserver restart"
}
# Execute after running tests to perform any required clean-up. This is called
# from hack/e2e-test.sh. This calls kube-down, so the cluster still exists when
# this is called.