add enableAdminApi for prometheus (#121)
Fixes #<xyz> ### Motivation would be nice to have this option here so people can run admin commands against the prometheus. ### Modifications added a new value and modified the deployment, taken from the official prom helm. ### Verifying this change - [ ] Make sure that the change passes the CI checks.
This commit is contained in:
parent
11a1d578dd
commit
75169707fb
@ -59,6 +59,10 @@ spec:
|
|||||||
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.prometheus.component }}"
|
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.prometheus.component }}"
|
||||||
image: "{{ .Values.images.prometheus.repository }}:{{ .Values.images.prometheus.tag }}"
|
image: "{{ .Values.images.prometheus.repository }}:{{ .Values.images.prometheus.tag }}"
|
||||||
imagePullPolicy: {{ .Values.images.prometheus.pullPolicy }}
|
imagePullPolicy: {{ .Values.images.prometheus.pullPolicy }}
|
||||||
|
{{- if .Values.prometheus.enableAdminApi }}
|
||||||
|
args:
|
||||||
|
- --web.enable-admin-api
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.prometheus.resources }}
|
{{- if .Values.prometheus.resources }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.prometheus.resources | indent 10 }}
|
{{ toYaml .Values.prometheus.resources | indent 10 }}
|
||||||
|
|||||||
@ -876,6 +876,7 @@ prometheus:
|
|||||||
tolerations: []
|
tolerations: []
|
||||||
gracePeriod: 5
|
gracePeriod: 5
|
||||||
port: 9090
|
port: 9090
|
||||||
|
enableAdminApi: false
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
memory: 256Mi
|
memory: 256Mi
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user