fix: proxy should not use priviledged port numbers (#356)
* fix: proxy should not use priviledged port numbers This fixes issue #335 * fix: making the change backward compatible
This commit is contained in:
parent
f43c6f6d9e
commit
90a26b2dc8
@ -37,17 +37,21 @@ spec:
|
||||
- name: http
|
||||
port: {{ .Values.proxy.ports.http }}
|
||||
protocol: TCP
|
||||
targetPort: sts-http
|
||||
- name: "{{ .Values.tcpPrefix }}pulsar"
|
||||
port: {{ .Values.proxy.ports.pulsar }}
|
||||
protocol: TCP
|
||||
targetPort: "sts-{{ .Values.tcpPrefix }}pulsar"
|
||||
{{- end }}
|
||||
{{- if and .Values.tls.enabled .Values.tls.proxy.enabled }}
|
||||
- name: https
|
||||
port: {{ .Values.proxy.ports.https }}
|
||||
protocol: TCP
|
||||
targetPort: sts-https
|
||||
- name: "{{ .Values.tlsPrefix }}pulsarssl"
|
||||
port: {{ .Values.proxy.ports.pulsarssl }}
|
||||
protocol: TCP
|
||||
targetPort: "sts-{{ .Values.tlsPrefix }}pulsarssl"
|
||||
{{- end }}
|
||||
selector:
|
||||
{{- include "pulsar.matchLabels" . | nindent 4 }}
|
||||
|
||||
@ -186,16 +186,16 @@ spec:
|
||||
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
|
||||
ports:
|
||||
# prometheus needs to access /metrics endpoint
|
||||
- name: http
|
||||
containerPort: {{ .Values.proxy.ports.http }}
|
||||
- name: sts-http
|
||||
containerPort: {{ .Values.proxy.ports.containerPorts.http }}
|
||||
{{- if or (not .Values.tls.enabled) (not .Values.tls.proxy.enabled) }}
|
||||
- name: "{{ .Values.tcpPrefix }}pulsar"
|
||||
- name: "sts-{{ .Values.tcpPrefix }}pulsar"
|
||||
containerPort: {{ .Values.proxy.ports.pulsar }}
|
||||
{{- end }}
|
||||
{{- if and (.Values.tls.enabled) (.Values.tls.proxy.enabled) }}
|
||||
- name: https
|
||||
containerPort: {{ .Values.proxy.ports.https }}
|
||||
- name: "{{ .Values.tlsPrefix }}pulsarssl"
|
||||
- name: sts-https
|
||||
containerPort: {{ .Values.proxy.ports.containerPorts.https }}
|
||||
- name: "sts-{{ .Values.tlsPrefix }}pulsarssl"
|
||||
containerPort: {{ .Values.proxy.ports.pulsarssl }}
|
||||
{{- end }}
|
||||
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
||||
|
||||
@ -903,6 +903,9 @@ proxy:
|
||||
https: 443
|
||||
pulsar: 6650
|
||||
pulsarssl: 6651
|
||||
containerPorts:
|
||||
http: 8080
|
||||
https: 8443
|
||||
service:
|
||||
annotations: {}
|
||||
type: LoadBalancer
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user