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

Feature - Provide an external endpoint to fetch HA bootstrap script #5889

Closed
damniamgood opened this issue Sep 2, 2016 · 3 comments
Closed
Labels
kind/enhancement Issues that improve or augment existing functionality

Comments

@damniamgood
Copy link

It would be really helpful to download HA script from an external endpoint (without any authentication) via REST call.

2 step process:

  1. Send HTTP request to some endpoint to get HA script. Request should have following information
    • RancherServer version
    • RancherAgent version (not sure if this is needed)
  2. As response, it provides a template bash script which requires arguments (or as environment variable) needed to setup HA. Eg. cert, registrationURL etc..

Sample REQUEST

GET /rancher-ha/v1?server_version=1.2.0
HOST: api.rancher.io

@vincent99
Copy link
Contributor

POST /v1/haconfigs/haconfig?action=createscript

{
  "hostRegistrationUrl":"https://asdf",
  "clusterSize":"3",
  "httpsPort":"443",
  "httpPort":"80",
  "swarmPort":"2376",
  "ppHttpsPort":"444",
  "ppHttpPort":"81",
  "redisPort":"6379",
  "zookeeperClientPort":"2181",
  "zookeeperQuorumPort":"2888",
  "zookeeperLeaderPort":"3888"
}

@damniamgood
Copy link
Author

Hey @vincent99
I was looking for a shared/open URL like https://api.rancher.io/v1/haconfigs/haconfig?action=createscript&server_version=1.1.0 This would help the community to have one source of truth and not rely on custom/local setup.

@will-chan will-chan added the kind/question Issues that just require an answer. No code change needd label Oct 7, 2016
@will-chan will-chan added this to the Unscheduled milestone Oct 7, 2016
@aemneina aemneina added kind/enhancement Issues that improve or augment existing functionality and removed kind/question Issues that just require an answer. No code change needd labels Nov 8, 2016
@damniamgood
Copy link
Author

Closing this issue as it's not required anymore. Bootstrapping rancher server cluster is much simpler now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement Issues that improve or augment existing functionality
Projects
None yet
Development

No branches or pull requests

4 participants