-
Notifications
You must be signed in to change notification settings - Fork 218
support bringing up more masters in terraform and quickstart scripts #515
Conversation
@pbx0 Code looks fine, how can I test this? |
@yifan-gu Create a file called terraform.tfvars with the following info:
Then run Now you should have a cluster running with 3 masters and 1 worker (the default). Check out the variables files to see all the inputs to terraform. You override any of those defaults via the terraform.tfvars file. Oh and what ever ssh key you specify from AWS should have its private material be available to you on your machine for the |
@pbx0 Thanks, let me try it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm (but lets hold off merging until tests are green)
ami = "${data.aws_ami.coreos_ami.image_id}" | ||
instance_type = "m3.medium" | ||
key_name = "${var.ssh_key}" | ||
count = "${var.additional_masters}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually "additional masters" is a bit vague. Can we just use a specific number: "master_count" or some such?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could be more symmetrical and use num_masters
and num_workers
it'd just take adding a little logic to terraform to figure out that one of the num_masters
is actually the bootstrap node and is special. So I think we'd want to validate that this number is 1 or greater or something like that in terraform.
I labeled it as addtional_masters
to imply it doesn't include the bootstrap node because it was easier to write that way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah I see. Can we add a comment / todo to this effect? (assuming you can have comments in tf files)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added this to the variable description in the variables.tf file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Renamed |
This is a requirement for the etcd-scaling test to be run against a terraform-quickstart created cluster.
cc @aaronlevy @yifan-gu