-
Notifications
You must be signed in to change notification settings - Fork 499
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
deploy/aws: split public and private subnets when using existing vpc #530
Conversation
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.
Could you move the variable comments to description
in favor of document generation?
deploy/aws/README.md
Outdated
By default, the terraform script will create a new VPC. You can use an existing VPC by setting `create_vpc` to `false` and specify your existing VPC id and subnet ids to `vpc_id` and `subnets` variables. | ||
By default, the terraform script will create a new VPC. You can use an existing VPC by setting `create_vpc` to `false` and specify your existing VPC id and subnet ids to `vpc_id`, `private_subnet_ids` and `public_subnet_ids` variables. | ||
|
||
**Note:** Reusing VPC and subnets of an existing EKS cluster is not supported yet due to limitations of AWS and Terraform, so only change this option if you have to use a manually created VPC. |
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.
quote the note?
variable "private_subnet_ids" { | ||
description = "private subnet id list" | ||
type = "list" | ||
default = ["subnet-899e79f3", "subnet-a72d80cf", "subnet-a76d34ea"] |
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.
These defaults are wired and seems to be environment dependent
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.
These are samples and should be changed to user's values if they need to use existing ones, by default (with create_vpc=true
) these values are ignored.
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
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
* add link achor check * fix dead anchors * reorder * fix anchors * fix an anchor according to hailong's suggestion Co-authored-by: Ran <[email protected]>
What problem does this PR solve?
This should close #514
What is changed and how it works?
subnets
toprivate_subnet_ids
andpublic_subnet_ids
, to correctly put resources into different network.cluster_name
to helm release name, making pod names uniqueCheck List
Tests
Code changes
Side effects
terraform
with new code to manage an cluster deployed by old versions.Related changes
Does this PR introduce a user-facing change?: