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

[kube-prometheus-stack] Implement Gateway API #4646

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

jkroepke
Copy link
Member

What this PR does / why we need it

The current template is just an approach. Once finalized, we add it anywhere in the chart.

Ref: #4622

Which issue this PR fixes

(optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged)

  • fixes #

Special notes for your reviewer

Checklist

  • DCO signed
  • Chart Version bumped
  • Title of the PR starts with chart name (e.g. [prometheus-couchdb-exporter])

@matzarah
Copy link

matzarah commented Nov 1, 2024

It would be great to see the "ingressPerReplica" feature replicated for this too as we are currently transitioning from Ingress to to Gateway API and have a need to expose each replica externally.

@jkroepke
Copy link
Member Author

jkroepke commented Nov 1, 2024

@matzarah could you give feedback what did you think about the current implementation?

Once approved, it will be added everywhere including replicas.

@QuentinBisson
Copy link
Member

QuentinBisson commented Nov 4, 2024

Hey @jkroepke I asked for some expects feedback on this and this looks quite good.

As long are green, I'm fine with merging this, so can you bump the version?

@jkroepke jkroepke force-pushed the gateway-api branch 3 times, most recently from 7dc8f19 to 83e34ea Compare November 4, 2024 12:02
@jkroepke jkroepke marked this pull request as draft November 4, 2024 12:02
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
Signed-off-by: Jan-Otto Kröpke <[email protected]>
@QuentinBisson
Copy link
Member

Nice work :)

@jkroepke jkroepke marked this pull request as ready for review November 4, 2024 19:24
@jkroepke
Copy link
Member Author

jkroepke commented Nov 4, 2024

I looked into the per-replica route, but It's a bit too complex for now. I would suggest doing that in a different PR by an user which has more time.

@jkroepke
Copy link
Member Author

jkroepke commented Nov 4, 2024

I also need an approval from @GMartinez-Sisti Since this PR contains modifications to the CI job.

@jkroepke
Copy link
Member Author

jkroepke commented Nov 4, 2024

Follow-up tasks:

  • HTTP Route for Alertmanager
  • HTTP Route for Alertmanager per Replica
  • HTTP Route for Prometheus per Replica
  • HTTP Route for Thanos Ruler

@jkroepke jkroepke merged commit d68fafc into prometheus-community:main Nov 4, 2024
4 checks passed
@jkroepke jkroepke deleted the gateway-api branch November 4, 2024 19:38
# Be aware that this is an early beta of this feature,
# kube-prometheus-stack does not guarantee this works and is subject to change.
# Being BETA this can/will change in the future without notice, do not use unless you want to take that risk
# [[ref]](https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io%2fv1alpha2)
Copy link

Choose a reason for hiding this comment

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

enabled: false

# -- Set the route apiVersion, e.g. gateway.networking.k8s.io/v1 or gateway.networking.k8s.io/v1alpha2
apiVersion: gateway.networking.k8s.io/v1
Copy link

@z0rc z0rc Nov 5, 2024

Choose a reason for hiding this comment

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

I'm not sure this should be configurable. v1alpha2 is already deprecated, IMHO there is value in supporting v1 only.

Copy link
Member Author

Choose a reason for hiding this comment

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

In context of HTTPRoute, v1alpha2 is deprecated. But in context of TLSRoute, v1alpha2 is still the lastest version.

Ref: https://gateway-api.sigs.k8s.io/concepts/api-overview/#tlsroute

Copy link
Contributor

Choose a reason for hiding this comment

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

Gateway api is too new to enforce only v1 api versions imo, there may be many implementations lacking behind, which would mean those users are unable to use this feature in the chart. There are also some update issues iirc, with regards to experimental versions of v1 api, which might cause users to still be on alpha api versions.

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.

6 participants