Skip to content

Commit

Permalink
[kube-prometheus-stack] Support additionalArgs on thanosRulerSpec (
Browse files Browse the repository at this point in the history
…prometheus-community#4092)

* Support `additionalArgs` on `thanosRulerSpec`

Signed-off-by: clux <[email protected]>

* bump a minor in Chart.yaml

Signed-off-by: clux <[email protected]>

* fix docstring to reference correct container

Signed-off-by: clux <[email protected]>

* fresh bump

Signed-off-by: clux <[email protected]>

---------

Signed-off-by: clux <[email protected]>
Signed-off-by: Eirik A <[email protected]>
Co-authored-by: Gabriel Martinez <[email protected]>
  • Loading branch information
2 people authored and Matiasmct committed Mar 20, 2024
1 parent b3a3987 commit e089e30
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/kube-prometheus-stack/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ name: kube-prometheus-stack
sources:
- https://github.com/prometheus-community/helm-charts
- https://github.com/prometheus-operator/kube-prometheus
version: 55.9.0
version: 55.10.0
appVersion: v0.70.0
kubeVersion: ">=1.19.0-0"
home: https://github.com/prometheus-operator/kube-prometheus
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ spec:
{{- else }}
externalPrefix: http://{{ template "kube-prometheus-stack.thanosRuler.name" . }}.{{ template "kube-prometheus-stack.namespace" . }}:{{ .Values.thanosRuler.service.port }}
{{- end }}
{{- if .Values.thanosRuler.thanosRulerSpec.additionalArgs }}
additionalArgs:
{{ toYaml .Values.thanosRuler.thanosRulerSpec.additionalArgs | indent 4 }}
{{- end }}
{{- if .Values.thanosRuler.thanosRulerSpec.nodeSelector }}
nodeSelector:
{{ toYaml .Values.thanosRuler.thanosRulerSpec.nodeSelector | indent 4 }}
Expand Down
11 changes: 11 additions & 0 deletions charts/kube-prometheus-stack/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4346,6 +4346,17 @@ thanosRuler:
##
paused: false

## Allows setting additional arguments for the ThanosRuler container
## ref: https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/api.md#thanosruler
##
additionalArgs: []
# - name: remote-write.config
# value: |-
# "remote_write":
# - "name": "receiver-0"
# "remote_timeout": "30s"
# "url": "http://thanos-receiver-0.thanos-receiver:8081/api/v1/receive"

## Define which Nodes the Pods are scheduled on.
## ref: https://kubernetes.io/docs/user-guide/node-selection/
##
Expand Down

0 comments on commit e089e30

Please sign in to comment.