-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
gce: Update logic for internal LB #15332
Conversation
Name: *e.Name, | ||
Address: fi.ValueOf(e.IPAddress), | ||
AddressType: fi.ValueOf(e.IPAddressType), | ||
Purpose: "SHARED_LOADBALANCER_VIP", |
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.
Do we need to specify this?
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 need it, because we have it shared between kops-controller
and api-server
.
return err | ||
} | ||
|
||
if len(b.Cluster.Spec.Networking.Subnets) != 1 { |
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 can't support multiple subnets? Is it that we would need multiple IPs?
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.
Not quite sure we support multiple subnets. I thought we don't, but I may be wrong.
If that's the case, then yes, we need multiple IPs.
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.
@justinsb Seems we don't support multiple subnets for GCE/GCP:
kops/upup/pkg/fi/cloudup/new_cluster.go
Lines 643 to 646 in 60a2e15
// We don't support multi-region clusters, so we can't have more than one subnet | |
if len(opt.SubnetIDs) != 1 { | |
return nil, fmt.Errorf("expected exactly one subnet for GCE, got %d", len(opt.SubnetIDs)) | |
} |
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 did something along the lines of supporting multiple subnets, but it's not pretty.
/retest |
2 similar comments
/retest |
/retest |
Thanks @hakman /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: justinsb The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
BTW I think we also need a firewall rule for access from outside the cluster (but inside the VPC), but we can do that separately |
…15332-#15611-#15614-#15607-upstream-release-1.27 Automated cherry pick of #15602: gce: Add support for bastions#15332: gce: Update logic for internal LB#15611: gce: Set firewall rules for Internal LBs also#15614: gce: Rename firewall SSH rules for bastion#15607: gce: Use `user-data` instead of `startup-script` metadata
/cc @justinsb