Skip to content

Commit

Permalink
Fix in-cluster remote urls when gateway and nginx are disabled (#10625)
Browse files Browse the repository at this point in the history
* Fix in-cluster remote urls when gateway and nginx are disabled

* fix template

* update CHANGELOG.md

* fix CHANGELOG.md

* Update operations/helm/charts/mimir-distributed/CHANGELOG.md

Co-authored-by: Taylor C <41653732+tacole02@users.noreply.github.com>

* Update operations/helm/charts/mimir-distributed/CHANGELOG.md

---------

Co-authored-by: Taylor C <41653732+tacole02@users.noreply.github.com>
Co-authored-by: Vladimir Varankin <vladimir@varank.in>
  • Loading branch information
3 people authored Feb 14, 2025
1 parent 273059d commit 74c29a9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions operations/helm/charts/mimir-distributed/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ Entries should include a reference to the Pull Request that introduced the chang
* [ENHANCEMENT] Individual mimir components can override their container images via the *.image values. The component's image definitions always override the values set in global `image` or `enterprise.image`. #10340
* [ENHANCEMENT] Alertmanager, compactor, ingester, and store-gateway StatefulSets can configure their PVC template name via the corresponding *.persistentVolume.name values. #10376
* [ENHANCEMENT] Set resources for smoke-test job. #10608
* [BUGFIX] Create proper in-cluster remote URLs when gateway and nginx are disabled. #10625
* [BUGFIX] Fix calculation of `mimir.siToBytes` and use floating point arithmetics. #10044

## 5.6.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -549,11 +549,19 @@ Return if we should create a SecurityContextConstraints. Takes into account user
{{- end -}}

{{- define "mimir.remoteWriteUrl.inCluster" -}}
{{- if or (eq (include "mimir.gateway.isEnabled" . ) "true") .Values.nginx.enabled -}}
{{ include "mimir.gatewayUrl" . }}/api/v1/push
{{- else -}}
http://{{ template "mimir.fullname" . }}-distributor-headless.{{ .Release.Namespace }}.svc:{{ include "mimir.serverHttpListenPort" . }}/api/v1/push
{{- end -}}
{{- end -}}

{{- define "mimir.remoteReadUrl.inCluster" -}}
{{- if or (eq (include "mimir.gateway.isEnabled" . ) "true") .Values.nginx.enabled -}}
{{ include "mimir.gatewayUrl" . }}{{ include "mimir.prometheusHttpPrefix" . }}
{{- else -}}
http://{{ template "mimir.fullname" . }}-query-frontend.{{ .Release.Namespace }}.svc:{{ include "mimir.serverHttpListenPort" . }}{{ include "mimir.prometheusHttpPrefix" . }}
{{- end -}}
{{- end -}}

{{/*
Expand Down

0 comments on commit 74c29a9

Please sign in to comment.