-
Notifications
You must be signed in to change notification settings - Fork 498
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
Merged
Merged
Changes from 4 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
695f159
feature:make Service port name configurable for tidb and pd service
mikechengwei 6f144e2
Merge branch 'master' into portName
mikechengwei f39ef71
Merge branch 'master' of github.com:pingcap/tidb-operator into portName2
mikechengwei ba93254
Merge branch 'portName' of github.com:tongcheng-elong/tidb-operator i…
mikechengwei 880f2a6
reset default port name
mikechengwei 7c28834
reset default port name
mikechengwei de16542
reset default port name
mikechengwei 91bf395
recover pd service clusterIP
mikechengwei 37b77ec
Merge branch 'master' of github.com:pingcap/tidb-operator into portName2
mikechengwei ce7b627
comment pd and tidb service portName
mikechengwei 71107d0
Merge branch 'master' of github.com:pingcap/tidb-operator into portName2
mikechengwei f7812ad
Merge branch 'master' into portName
mikechengwei 2a901c4
Merge branch 'master' of github.com:pingcap/tidb-operator into portName2
mikechengwei b99631a
Merge branch 'portName' of github.com:tongcheng-elong/tidb-operator i…
mikechengwei 5a9e2df
set pd and tidb port name value in yaml
mikechengwei db93903
set pd and tidb port name value in yaml
mikechengwei cfc50f5
Merge branch 'master' into portName
mikechengwei 7f06a44
Merge branch 'master' into portName
mikechengwei 2ff4dcd
Merge branch 'master' into portName
mikechengwei 368882f
Merge branch 'master' into portName
mikechengwei 8cf1129
Merge branch 'master' into portName
mikechengwei File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: "None" | ||
|
||
replicas: 3 | ||
image: pingcap/pd:v3.0.8 | ||
|
@@ -396,6 +397,7 @@ tidb: | |
service: | ||
type: NodePort | ||
exposeStatus: true | ||
portName: "None" | ||
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. ditto |
||
# annotations: | ||
# cloud.google.com/load-balancer-type: Internal | ||
separateSlowLog: true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
why it defaults to
None
? I guess "None" (string) port name will be used. shouldn't it be omitted by default?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.
For backward compatibility, I want to set nil in code like clusterIP field.
I can set original portName.
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.
you mean
None
in yaml is parsed asnil
in go?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.
It's my question,I have optimized code again. And I comment pd
clusterIP
field, becauseclusterIP
setNone
is also an error.