-
Notifications
You must be signed in to change notification settings - Fork 4k
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
fix(eks): kubernetes cannot create external load balancers #5448
Conversation
Add the tag "kubernetes.io/role/elb" to all public subnets, so Kubernetes can use these subnets when creating an external load balancer. Fixes #5443
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
for (const subnet of subnets) { | ||
// if this is not a concrete subnet, attach a construct warning | ||
if (!Subnet.isVpcSubnet(subnet)) { | ||
const subnetId = Token.isUnresolved(subnet.subnetId) ? '' : subnet.subnetId; |
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.
If the subnet ID is a token, won't this generate a warning that is weirdly illegible?
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.
Let me try to improve...
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Add the tag "kubernetes.io/role/elb" to all public subnets, so Kubernetes can use these subnets when creating an external load balancer.
Fixes #5443
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license