kops
kops copied to clipboard
gce: Switch from using targetpools to backend services
Google recommends creating NLBs using Backend Services instead of TargetPools to take advantage of newer features
https://cloud.google.com/load-balancing/docs/network/networklb-target-pools
Also, this change "almost" supports global LBs(missing TCP target proxy resource) Google splits some services in to regional vs global with identical object types. I fixed the methods to detect if a region is being supplied.
Why:
- I want to try and see if global TCP Proxy LBs don't trigger ddos protection when running scale tests.
- If Ddos protection kicks in, we can write a cloud-armor policy that allows 1k rps(10k reqs per 10s) from any IP.
/cc @justinsb /assign @justinsb
Thanks for this @upodroid ... it looks like we do use backend services with internal load balancers. I am proposing that we have internal load balancers for both api & kops-controller in all circumstances, so we should be using backend services (my motivation was the firewall rule bug).
I think the issue you hit was on the node/pod -> apiserver traffic maybe getting rate limited, so it might be good to validate that if/when we make that switch, that the rate limiting goes away.
That said, I don't oppose the idea of using backend services on the "user-facing" traffic also - the IPv6 support seems compelling in particular! I think we should sequence this after the better internal LB support though, do you agree?
[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from justinsb. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
That said, I don't oppose the idea of using backend services on the "user-facing" traffic also - the IPv6 support seems compelling in particular! I think we should sequence this after the better internal LB support though, do you agree?
Yes
I need to split this PR into smaller pieces
- The gce client changes to support regional/global resources with a unified function
- The LB changes
@upodroid: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| pull-kops-verify-hashes | bc4f045828e68e0657a2fc5f1e3078d7feb5b873 | link | true | /test pull-kops-verify-hashes |
| pull-kops-build | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-build |
| pull-kops-verify-govet | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-verify-govet |
| pull-kops-test | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-test |
| pull-kops-e2e-k8s-gce-cilium | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-e2e-k8s-gce-cilium |
| pull-kops-e2e-k8s-gce-ipalias | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-e2e-k8s-gce-ipalias |
| pull-kops-verify-golangci-lint | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-verify-golangci-lint |
| pull-kops-e2e-k8s-aws-calico | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-e2e-k8s-aws-calico |
| pull-kops-verify-terraform | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-verify-terraform |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.
PR needs rebase.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
The Kubernetes project currently lacks enough contributors to adequately respond to all PRs.
This bot triages PRs according to the following rules:
- After 90d of inactivity,
lifecycle/staleis applied - After 30d of inactivity since
lifecycle/stalewas applied,lifecycle/rottenis applied - After 30d of inactivity since
lifecycle/rottenwas applied, the PR is closed
You can:
- Mark this PR as fresh with
/remove-lifecycle stale - Close this PR with
/close - Offer to help out with Issue Triage
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
/remove-lifecycle stale
Hmm, I'll get the merge conflicts fixed and ship my open PRs in early June
@upodroid: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:
| Test name | Commit | Details | Required | Rerun command |
|---|---|---|---|---|
| pull-kops-verify-hashes | bc4f045828e68e0657a2fc5f1e3078d7feb5b873 | link | true | /test pull-kops-verify-hashes |
| pull-kops-build | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-build |
| pull-kops-verify-govet | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-verify-govet |
| pull-kops-test | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-test |
| pull-kops-e2e-k8s-gce-cilium | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-e2e-k8s-gce-cilium |
| pull-kops-e2e-k8s-gce-ipalias | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-e2e-k8s-gce-ipalias |
| pull-kops-verify-golangci-lint | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-verify-golangci-lint |
| pull-kops-e2e-k8s-aws-calico | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-e2e-k8s-aws-calico |
| pull-kops-verify-terraform | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-verify-terraform |
| pull-kops-e2e-k8s-aws-calico-k8s-infra | 5c9142683b02c3ee5ae12527db08682ccb279a72 | link | true | /test pull-kops-e2e-k8s-aws-calico-k8s-infra |
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.