Support defining extra env for broker and proxy statefulsset. (#273)
This commit is contained in:
parent
f2266c4295
commit
c6ab1d18e3
@ -227,6 +227,10 @@ spec:
|
|||||||
- name: "{{ .Values.tlsPrefix }}pulsarssl"
|
- name: "{{ .Values.tlsPrefix }}pulsarssl"
|
||||||
containerPort: {{ .Values.broker.ports.pulsarssl }}
|
containerPort: {{ .Values.broker.ports.pulsarssl }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.broker.extreEnvs }}
|
||||||
|
env:
|
||||||
|
{{ toYaml .Values.broker.extreEnvs | indent 8 }}
|
||||||
|
{{- end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
|
name: "{{ template "pulsar.fullname" . }}-{{ .Values.broker.component }}"
|
||||||
|
|||||||
@ -202,6 +202,10 @@ spec:
|
|||||||
securityContext:
|
securityContext:
|
||||||
readOnlyRootFilesystem: false
|
readOnlyRootFilesystem: false
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- if .Values.proxy.extreEnvs }}
|
||||||
|
env:
|
||||||
|
{{ toYaml .Values.proxy.extreEnvs | indent 8 }}
|
||||||
|
{{- end }}
|
||||||
envFrom:
|
envFrom:
|
||||||
- configMapRef:
|
- configMapRef:
|
||||||
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
|
name: "{{ template "pulsar.fullname" . }}-{{ .Values.proxy.component }}"
|
||||||
|
|||||||
@ -740,6 +740,12 @@ broker:
|
|||||||
# readOnly: true
|
# readOnly: true
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
extraVolumeMounts: []
|
extraVolumeMounts: []
|
||||||
|
extreEnvs: []
|
||||||
|
# - name: POD_NAME
|
||||||
|
# valueFrom:
|
||||||
|
# fieldRef:
|
||||||
|
# apiVersion: v1
|
||||||
|
# fieldPath: metadata.name
|
||||||
## Broker configmap
|
## Broker configmap
|
||||||
## templates/broker-configmap.yaml
|
## templates/broker-configmap.yaml
|
||||||
##
|
##
|
||||||
@ -856,6 +862,12 @@ proxy:
|
|||||||
# readOnly: true
|
# readOnly: true
|
||||||
extraVolumes: []
|
extraVolumes: []
|
||||||
extraVolumeMounts: []
|
extraVolumeMounts: []
|
||||||
|
extreEnvs: []
|
||||||
|
# - name: POD_IP
|
||||||
|
# valueFrom:
|
||||||
|
# fieldRef:
|
||||||
|
# apiVersion: v1
|
||||||
|
# fieldPath: status.podIP
|
||||||
## Proxy configmap
|
## Proxy configmap
|
||||||
## templates/proxy-configmap.yaml
|
## templates/proxy-configmap.yaml
|
||||||
##
|
##
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user