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

[loki-distributed] Add 'grpclb' port to query-frontend service #803

Merged
merged 1 commit into from
Nov 29, 2021

Conversation

Tristan971
Copy link
Contributor

@Tristan971 Tristan971 commented Nov 9, 2021

Fixes #801, albeit not necessarily the right way about it...

From a maintenance perspective it's fragile to just add a duplicate port like that, and from a BC perspective we can't necessarily just rename the old one either.

There's definitely something that needs to happen, but I'm not sure this is it, even though it does the trick.

@torstenwalter
Copy link
Collaborator

@Tristan971 please update the docs.
For me this looks good. I was just thinking if we should also update the targetPort to make it easier to drop the existing (old) grpc port when making a breaking change e.g. a 1.0.0 release.

@unguiculus what do you think about the PR?

@Tristan971
Copy link
Contributor Author

Tristan971 commented Nov 9, 2021

For the target port name change, I would certainly not mind, but was similarly thinking "technically breaking change" if someone made their own service for some reason, so refrained from touching it

I guess we could introduce an extra named port on the deployment rather than renaming the existing?

Will get docs fixed in a second

@torstenwalter
Copy link
Collaborator

Makes sense so we could leave the targetPort as is.

Fixes grafana#801

Signed-off-by: Tristan Deloche <tde@hey.com>
@Tristan971 Tristan971 force-pushed the add-grpclb-port-to-query-frontend branch from 2bdd242 to 60a5a0c Compare November 9, 2021 22:18
@Tristan971
Copy link
Contributor Author

Tristan971 commented Nov 9, 2021

Had never tried, and can't find any doc to explain it, but it would seem that you cannot have 2 portMappings on a single container that have the same number/protocol but different names...

At least on the k8s version I'm on (1.21.5) it just discards one of them.

I'm afraid we'll need to stick to it being 'grpc' at the pod level until 1.0 hits

@Tristan971
Copy link
Contributor Author

Any updates on this?

Copy link
Collaborator

@Whyeasy Whyeasy left a comment

Choose a reason for hiding this comment

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

LGTM!

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.

[Loki-distributed] query-frontend incorrect grpc port name
3 participants