-
Notifications
You must be signed in to change notification settings - Fork 499
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
feature:make Service port name configurable for tidb and pd service #1823
Changes from 10 commits
695f159
6f144e2
f39ef71
ba93254
880f2a6
7c28834
de16542
91bf395
37b77ec
ce7b627
71107d0
f7812ad
2a901c4
b99631a
5a9e2df
db93903
cfc50f5
7f06a44
2ff4dcd
368882f
8cf1129
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -77,6 +77,7 @@ pd: | |||||||||||||||||||||||||
# we can only specify clusterIP and loadBalancerIP now | ||||||||||||||||||||||||||
service: | ||||||||||||||||||||||||||
clusterIP: "None" | ||||||||||||||||||||||||||
# portName: "<the default name will be used>" | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the default value in our code is tidb-operator/pkg/manager/member/pd_member_manager.go Lines 446 to 453 in 7360679
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If you do this, there will be a problem of backward compatibility. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can set There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree. See my previous comments and use actual default values in comments. then people will know port name used if they didn’t set these fields. This is common practice in configuration files. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for explaining, I understand now. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
replicas: 3 | ||||||||||||||||||||||||||
image: pingcap/pd:v3.0.8 | ||||||||||||||||||||||||||
|
@@ -396,6 +397,7 @@ tidb: | |||||||||||||||||||||||||
service: | ||||||||||||||||||||||||||
type: NodePort | ||||||||||||||||||||||||||
exposeStatus: true | ||||||||||||||||||||||||||
# portName: "<the default name will be used>" | ||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you replace
Yisaer marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||
# annotations: | ||||||||||||||||||||||||||
# cloud.google.com/load-balancer-type: Internal | ||||||||||||||||||||||||||
separateSlowLog: true | ||||||||||||||||||||||||||
|
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.
can you replace
<the default name will be used>
with the actual port name used for pd? I guess it'sclient
here?