Skip to content
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

Set the default externalTrafficPolicy to be Local for TiDB service #947

Merged
merged 2 commits into from
Sep 27, 2019

Conversation

sokada1221
Copy link
Contributor

What problem does this PR solve?

#879

What is changed and how does it work?

The default externalTrafficPolicy is now set to be Local

Check List

Tests

  • Manual test (add detailed scripts or steps below)
  1. Deploy to AWS from /tidb-operator/deploy/aws out-of-box
  2. Run kubectl describe service my-cluster-tidb -n my-cluster and verify the value of externalTrafficPolicy.

Code changes

  • Has Helm charts change

Side effects

  • Breaking backward compatibility

Related changes

  • N/A

Does this PR introduce a user-facing change?:

NONE

@weekface
Copy link
Contributor

Can we do this in the terraform deployment script? This looks like a breaking change to the operator.

@sokada1221
Copy link
Contributor Author

@weekface: which part/file do you have in mind for "the terraform deployment script"? /tidb-operator/deploy/modules?

@tennix
Copy link
Member

tennix commented Sep 25, 2019

@weekface
Copy link
Contributor

@aylei PTAL

@sokada1221
Copy link
Contributor Author

@weekface @tennix: Sure! Let me move the change to /tidb-operator/deploy/modules.
Although it's a backward incompatible change, I modified the helm chart default as I couldn't think of a use case where multiple TiDB pods should be scheduled per node.

@tennix
Copy link
Member

tennix commented Sep 25, 2019

Users may deploy tidb-cluster in their IDC where a node can have multiple pods scheduled.

@sokada1221 sokada1221 force-pushed the local-external-traffic-policy branch from c1dd6af to d8eeffc Compare September 25, 2019 04:28
@sokada1221
Copy link
Contributor Author

Addressed the review comment. PTAL.

Copy link
Member

@tennix tennix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@weekface
Copy link
Contributor

/run-e2e-in-kind

Copy link
Contributor

@aylei aylei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@sre-bot
Copy link
Contributor

sre-bot commented Sep 27, 2019

cherry pick to release-1.0 in PR #960

@sokada1221 sokada1221 deleted the local-external-traffic-policy branch February 27, 2020 00:31
yahonda pushed a commit that referenced this pull request Dec 27, 2021
Signed-off-by: Ran <huangran@pingcap.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants