feat(gateway): add a helm chart that deploys a kgateway gateway#1770
feat(gateway): add a helm chart that deploys a kgateway gateway#1770piuswa wants to merge 7 commits into
Conversation
| @@ -0,0 +1,24 @@ | |||
| {{- if .Values.otelcol.enabled }} | |||
There was a problem hiding this comment.
shouldn't this be in the upstream otel chart?
There was a problem hiding this comment.
This can not be in the upstream chart, because ListenerPolicy is a kgateway specific object and therefore has to be defined with the gateway.
There was a problem hiding this comment.
did we consider stashing it in extraManifests for now?
There was a problem hiding this comment.
Removed and integrated into the primary listenerpolicy for the gateway.
Since the otelcol dependency was removed here (the listenerpolicy config is specifically an opentelemetry compatible grpc endpoint), I think this can be resolved.
| @@ -0,0 +1,77 @@ | |||
| {{- if .Values.podMonitor.enabled }} | |||
| apiVersion: monitoring.coreos.com/v1 | |||
| kind: PodMonitor | |||
There was a problem hiding this comment.
Would it be possible to use a ServiceMonitor?
There was a problem hiding this comment.
The service created with the gateway by the controller does not expose the metrics port.
We'll create a separate metrics service here and point the servicemonitor to it.
There was a problem hiding this comment.
sire, this is a PodMonitor, how can we point to a ServiceMonitor if this creates a PodMonitor?
There was a problem hiding this comment.
Pod Monitor has been removed and changed to a Service Monitor
| spec: | ||
| scaleTargetRef: | ||
| apiVersion: apps/v1 | ||
| kind: Deployment |
There was a problem hiding this comment.
Who manages this Deployment? Shouldn't it deploy Deployment related resources like HPAs?
There was a problem hiding this comment.
The Deployment is managed by the Gateway resource. As of version 2.2.2 of kgateway it is not possible to configure this using GatewayParameters. This will be possible in version 2.3.0 which is still in beta. Same goes for the PodDisruptionBudget.
There was a problem hiding this comment.
When to we expect 2.3.0 to be GA? If it's soon then we might as well skip adding them here.
There was a problem hiding this comment.
They seem to be halfway there currently with no due date set. Not really sure when to expect it.
There was a problem hiding this comment.
if they follow a quarterly release cycle, then i would assume that they release 2.3 in early may. my hope would also be that the release aligns with whatever plans upstream gateway-api sig has.
There was a problem hiding this comment.
As gateway api does not have a deterministic release cycle, it's a bit hard to anticipate:
https://gateway-api.sigs.k8s.io/contributing/release-cycle/
For instance, gateway api v1.5 was released on February 27th. A beta release of kgateway supporting this version of gateway api was cut on March 20th (v2.3.0-beta.3).
What changes with 2.3.0 as well is the creation of HPA and PDB resources using the gateway parameters.
Right now, we do this along with the chart. I think that's okay, since it's a minor change afterwards and shouldn't be user-facing.
At the current pace I do expect the 2.3 release to be sometime in May as well.
Keep in mind updating gateway-api can also depend on other components, such as support by cert-manager and external-dns, as well as support by installed helm charts deploying routes on API version changes.
There was a problem hiding this comment.
Given how soon we expect 2.3.0 to be released, would early adopting it's beta help us keep this change smaller? How would that fit with out roadmaps?
97fba7e to
beffd1e
Compare
beffd1e to
54b7f64
Compare
I might have more, the feedback i have so far was only from a quick initial scan of the change. This also feels like it would benefit very much from some links (to issues that ask for the features from here in upstream) and a real explanation as to why it's needed. |
dominrivera
left a comment
There was a problem hiding this comment.
LGTM.
Just @cfi2017 do you think we can define something in here to fulfill this request? https://git.adfinis.com/ch-cloudnative/team-coordination/-/work_items/744#note_889098
Description
This PR introduces a new chart that deploys a kgateway gateway.
Optional Features:
Issues
In internal tracker
Checklist
artifacthub.io/changesannotation inChart.yaml, check the example in the documentation.pre-commit rundocs/