diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md index e9a020b85416e..ca27d5162f2d6 100644 --- a/docs/sources/setup/install/helm/reference.md +++ b/docs/sources/setup/install/helm/reference.md @@ -10132,6 +10132,9 @@ Defaults to allow skew no more then 1 node "tag": null }, "initContainers": [], + "loadBalancer": { + "enabled": true + }, "maxUnavailable": null, "nodeSelector": {}, "podAnnotations": {}, @@ -10374,6 +10377,17 @@ null
 []
 
+ + + + queryFrontend.loadBalancer + object + Enable load balancer port for query-frontend +
+{
+  "enabled": true
+}
+
diff --git a/production/helm/loki/CHANGELOG.md b/production/helm/loki/CHANGELOG.md index 19e350816186e..0cea3a5d74361 100644 --- a/production/helm/loki/CHANGELOG.md +++ b/production/helm/loki/CHANGELOG.md @@ -13,6 +13,8 @@ Entries should include a reference to the pull request that introduced the chang ## Unreleased +- [FEATURE] Add load balancer port to query-frontend service. [#19462](https://github.com/grafana/loki/pull/19462) + ## 6.45.2 - [BUGFIX] Fix incorrect GEL version in the chart and reference. @@ -51,7 +53,7 @@ Entries should include a reference to the pull request that introduced the chang **NOTE:** While the Loki chart does not currently use these CRDs, we wanted to note this requirement for the [rollout-operator](https://github.com/grafana/helm-charts/tree/main/charts/rollout-operator#upgrade-of-grafana-rollout-operator). Starting with v0.33.0 of the rollout-operator chart, the rollout-operator webhooks are enabled. See https://github.com/grafana/rollout-operator/#webhooks. -Before upgrading to this version, make sure that the CustomResourceDefinitions (CRDs) in the crds directory are applied to your cluster. Manually applying these CRDs is only required if upgrading from a chart <= v0.32.0. +Before upgrading to this version, make sure that the CustomResourceDefinitions (CRDs) in the crds directory are applied to your cluster. Manually applying these CRDs is only required if upgrading from a chart <= v0.32.0. - [BUGFIX] Use strings instead of integers for ports in CiliumNetworkPolicies [#19252](https://github.com/grafana/loki/pull/19252) - [FEATURE] Add replicas to loki-canary deployment [#190095](https://github.com/grafana/loki/pull/19095) @@ -86,7 +88,7 @@ Before upgrading to this version, make sure that the CustomResourceDefinitions ( ## 6.38.0 **NOTE:** While the Loki chart does not currently use these CRDs, we wanted to note this requirement for the [rollout-operator](https://github.com/grafana/helm-charts/tree/main/charts/rollout-operator#upgrade-of-grafana-rollout-operator). -Before upgrading to v0.32.0, make sure that the CustomResourceDefinitions (CRDs) in the `crds` directory are applied to your cluster. Manually applying these CRDs is only required if upgrading from a chart <= v0.32.0. +Before upgrading to v0.32.0, make sure that the CustomResourceDefinitions (CRDs) in the `crds` directory are applied to your cluster. Manually applying these CRDs is only required if upgrading from a chart <= v0.32.0. - un-deprecate all features in `monitoring` block except grafana-agent-operator [#19001](https://github.com/grafana/loki/pull/19001) - [FEATURE] Make access modes for persistence on all PVCs and StatefulSets editable [#13474](https://github.com/grafana/loki/pull/13474) diff --git a/production/helm/loki/templates/query-frontend/service-query-frontend.yaml b/production/helm/loki/templates/query-frontend/service-query-frontend.yaml index 3105c31c9e1fe..da31d9abd2422 100644 --- a/production/helm/loki/templates/query-frontend/service-query-frontend.yaml +++ b/production/helm/loki/templates/query-frontend/service-query-frontend.yaml @@ -32,6 +32,7 @@ spec: {{- if .Values.queryFrontend.appProtocol.grpc }} appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }} {{- end }} + {{- if .Values.queryFrontend.loadBalancer.enabled }} - name: grpclb port: 9096 targetPort: grpc @@ -39,6 +40,7 @@ spec: {{- if .Values.queryFrontend.appProtocol.grpc }} appProtocol: {{ .Values.queryFrontend.appProtocol.grpc }} {{- end }} + {{- end }} selector: {{- include "loki.queryFrontendSelectorLabels" . | nindent 4 }} {{- end -}} diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 17f0e45672301..e1253b41cd999 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -2472,6 +2472,9 @@ queryFrontend: appProtocol: # -- Set the optional grpc service protocol. Ex: "grpc", "http2" or "https" grpc: "" + # -- Enable load balancer port for query-frontend + loadBalancer: + enabled: true # -- Configuration for the query-scheduler queryScheduler: # -- Number of replicas for the query-scheduler.