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

Issue 670: Updating the segmentstore port #671

Merged
merged 1 commit into from
Sep 12, 2023

Conversation

anishakj
Copy link
Contributor

Change log description

Updating the segment store service port incrementally if SegmentStoreLoadBalancerIP is set

Purpose of the change

Fixes #670

What the code does

If we are using same segment store service IP with different ports, in case of admin port as well port number needs to be incremented. If it is not incremented will give port conflict

How to verify it

Verify segment store pods are coming up fine

@anishakj anishakj requested review from jkhalack and abhinb September 11, 2023 15:52
@@ -641,6 +641,7 @@ func MakeSegmentStoreExternalServices(p *api.PravegaCluster) []*corev1.Service {
}
if p.Spec.Pravega.SegmentStoreLoadBalancerIP != "" {
service.Spec.Ports[0].Port = int32(serviceport) + i
service.Spec.Ports[1].Port = int32(adminPort) + i

Choose a reason for hiding this comment

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

@anishakj is it expected to go up (9999, 1000, 1001) or down (9999, 9998, 9997)?

Copy link
Contributor Author

@anishakj anishakj Sep 11, 2023

Choose a reason for hiding this comment

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

ports are supported upto 65535 i made it similar for 12345 port

@anishakj anishakj marked this pull request as ready for review September 12, 2023 04:45
Copy link

@krishan-Rai krishan-Rai left a comment

Choose a reason for hiding this comment

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

LGTM

@anishakj anishakj merged commit 2d60c29 into master Sep 12, 2023
anishakj added a commit that referenced this pull request Sep 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segment store pods are not coming up in K3s cluster
3 participants