-
Notifications
You must be signed in to change notification settings - Fork 280
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: support migrate from NIC-based to IP-based backend pool by migration API by setting "enableMigrateToIPBasedBackendPoolAPI": true
#3972
Conversation
✅ Deploy Preview for kubernetes-sigs-cloud-provide-azure canceled.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: nilo19 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 |
cdd7146
to
04d4ed4
Compare
"enableMigrateToIpBasedBackendPoolAPI": true
"enableMigrateToIPBasedBackendPoolAPI": true
response, rerr := c.armClient.GetResourceWithExpandQuery(ctx, resourceID, expand) | ||
defer c.armClient.CloseResponse(ctx, response) | ||
if rerr != nil { | ||
klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "loadbalancer.get.request", resourceID, rerr.Error()) |
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.
nit: loadbalancer.backendpool.get.request
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.
done
azure.WithErrorUnlessStatusCode(http.StatusOK), | ||
autorest.ByUnmarshallingJSON(&result)) | ||
if err != nil { | ||
klog.V(5).Infof("Received error in %s: resourceID: %s, error: %s", "loadbalancer.get.respond", resourceID, err) |
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.
loadbalancer.backendpool.get.respond
be76293
to
81a34d5
Compare
// Report errors if the client is throttled. | ||
if c.RetryAfterReader.After(time.Now()) { | ||
mc.ThrottledCount() | ||
rerr := retry.GetThrottlingError("LBGet", "client throttled", c.RetryAfterReader) |
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.
nit: LBBackendPoolGet
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.
done
…ation API by setting `"enableMigrateToIpBasedBackendPoolAPI": true`
81a34d5
to
d97617f
Compare
/retest |
2 similar comments
/retest |
/retest |
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
/cherrypick release-1.27 |
@nilo19: #3972 failed to apply on top of branch "release-1.27":
In response to this:
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. |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Support migrate from NIC-based to IP-based backend pool by migration API by setting
"enableMigrateToIpBasedBackendPoolAPI": true
. By using this API, there will be no downtime during the migration.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: