Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stop/start functionality #14

Closed
sigsteve opened this issue Jul 9, 2019 · 2 comments · Fixed by #16
Closed

Add stop/start functionality #14

sigsteve opened this issue Jul 9, 2019 · 2 comments · Fixed by #16

Comments

@sigsteve
Copy link
Owner

sigsteve commented Jul 9, 2019

We need to have the ability to shutdown and bring up a cluster that's already been deployed.

@SweBarre
Copy link
Contributor

Hi,
I do have a start and a stop script for the cluster
I haven't pushed it though, don't know exactly how it should be implemented.

Should it be a complete new script (I think so, it doesn't make sense too me to have it as an option to deploy_caasp.sh)
Should it be two scripts, eg. cluster_start.sh and cluster_stop.sh or one script with a start/stop parameter?

Cheers

@SweBarre
Copy link
Contributor

I also experience some issues when deploying a cluster, not always though.
But sometimes it can take several minutes for the masters and workers to reach Ready state.
And if the workers are not in "Ready" state the Dashboard fails to install (and sometimes tiller aswell).

So I also included wait_for_masters_ready and wait_for_workers_ready in the 04.add_workers.sh so the deployment won't continue until all cluster nodes has reached Ready state.

I pushed my rough scripts to my fork SweBarre@b0ba6ab

You can take a look at it and give some feedback on what you think.

./cluster.sh -h
Usage cluster.sh [options..] [command]
-v, --verbose        Make the operation more talkative
-h,-?, --help        Show help and exit

start                start a previosly provisioned cluster
stop                 stop a running cluster

getToken             get Dashboard token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants