Option to not to use rbac in helm deployment (#3082)
* option to not to use rbac * default value to match previous settings
This commit is contained in:
parent
4cd61bfca8
commit
53ce119519
@ -55,7 +55,9 @@ spec:
|
||||
tolerations:
|
||||
{{ toYaml .Values.prometheus.tolerations | indent 8 }}
|
||||
{{- end }}
|
||||
{{- if .Values.prometheus_rbac }}
|
||||
serviceAccount: "{{ template "pulsar.fullname" . }}-{{ .Values.prometheus.component }}"
|
||||
{{- end }}
|
||||
terminationGracePeriodSeconds: {{ .Values.prometheus.gracePeriod }}
|
||||
containers:
|
||||
- name: "{{ template "pulsar.fullname" . }}-{{ .Values.prometheus.component }}"
|
||||
|
||||
@ -18,6 +18,7 @@
|
||||
#
|
||||
|
||||
{{- if .Values.extra.monitoring }}
|
||||
{{- if .Values.prometheus_rbac }}
|
||||
apiVersion: rbac.authorization.k8s.io/v1beta1
|
||||
kind: ClusterRole
|
||||
metadata:
|
||||
@ -55,3 +56,4 @@ subjects:
|
||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.prometheus.component }}"
|
||||
namespace: {{ .Values.namespace }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
||||
@ -31,6 +31,8 @@ persistence: no
|
||||
## will be deployed with emptyDir
|
||||
prometheus_persistence: no
|
||||
|
||||
prometheus_rbac: yes
|
||||
|
||||
## which extra components to deploy
|
||||
extra:
|
||||
# Pulsar proxy
|
||||
|
||||
@ -31,6 +31,8 @@ persistence: no
|
||||
## will be deployed with emptyDir
|
||||
prometheus_persistence: yes
|
||||
|
||||
prometheus_rbac: yes
|
||||
|
||||
## which extra components to deploy
|
||||
extra:
|
||||
# Pulsar proxy
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user