-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
feat: Add public and private tags per az #860
feat: Add public and private tags per az #860
Conversation
f446a83
to
1038dcc
Compare
cc: @bryantbiggs @antonbabenko could you please review this when you folks have a chance? |
cc: @bryantbiggs @antonbabenko friendly ping |
My personal opinion is that I don't agree with this approach. I am not sure what the intention is, but controllers can be written to query the IMDS to find out what AZ a pod/node is running within |
The goal is to be able to concentrate traffic against a specific AZ. We can filter the subnet by tag using the aws-load-balancer-controller (for example) but if we cannot tag per subnet AZ, then we cannot filter by AZ. Being able to tag here by subnet AZ, would allow us to control traffic using these controllers. |
Yes they could, but a feature to allow defining target subnets based on tags exists already. Also, the effort to include that functionality in a controller would be more complex than what is proposed here. Without the ability to tag subnets per AZ, one has some options:
With @nitrocode's submission, one can accomplish tagging subnets as needed to satisfy the single AZ target, or any combination of subnet aggregation tagging based on business needs. |
cc: @bryantbiggs (friendly ping) |
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 because this addition is helpful for people who are now even using EKS but they still want to have the possibility to tag subnets differently.
This PR is included in version 3.19.0 🎉 |
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Add public and private tags per az
public_subnet_tags_per_az
private_subnet_tags_per_az
Motivation and Context
I want to set up kubernetes controllers that can use a specific subnet by tag. I could use name but our names have a lot of information in them. I would much rather be able to tag a subnet by AZ with certain tags like the AZ itself or the cluster I'm trying to target for this AZ.
Breaking Changes
None
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull requestcd examples/simple-vpc terraform init terraform plan