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
|
- name: http
|
||||||
port: {{ .Values.proxy.ports.http }}
|
port: {{ .Values.proxy.ports.http }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
targetPort: sts-http
|
||||||
- name: "{{ .Values.tcpPrefix }}pulsar"
|
- name: "{{ .Values.tcpPrefix }}pulsar"
|
||||||
port: {{ .Values.proxy.ports.pulsar }}
|
port: {{ .Values.proxy.ports.pulsar }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
targetPort: "sts-{{ .Values.tcpPrefix }}pulsar"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.tls.enabled .Values.tls.proxy.enabled }}
|
{{- if and .Values.tls.enabled .Values.tls.proxy.enabled }}
|
||||||
- name: https
|
- name: https
|
||||||
port: {{ .Values.proxy.ports.https }}
|
port: {{ .Values.proxy.ports.https }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
targetPort: sts-https
|
||||||
- name: "{{ .Values.tlsPrefix }}pulsarssl"
|
- name: "{{ .Values.tlsPrefix }}pulsarssl"
|
||||||
port: {{ .Values.proxy.ports.pulsarssl }}
|
port: {{ .Values.proxy.ports.pulsarssl }}
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
|
targetPort: "sts-{{ .Values.tlsPrefix }}pulsarssl"
|
||||||
{{- end }}
|
{{- end }}
|
||||||
selector:
|
selector:
|
||||||
{{- include "pulsar.matchLabels" . | nindent 4 }}
|
{{- include "pulsar.matchLabels" . | nindent 4 }}
|
||||||
|
|||||||
@ -186,16 +186,16 @@ spec:
|
|||||||
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
|
OPTS="${OPTS} -Dlog4j2.formatMsgNoLookups=true" exec bin/pulsar proxy
|
||||||
ports:
|
ports:
|
||||||
# prometheus needs to access /metrics endpoint
|
# prometheus needs to access /metrics endpoint
|
||||||
- name: http
|
- name: sts-http
|
||||||
containerPort: {{ .Values.proxy.ports.http }}
|
containerPort: {{ .Values.proxy.ports.containerPorts.http }}
|
||||||
{{- if or (not .Values.tls.enabled) (not .Values.tls.proxy.enabled) }}
|
{{- 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 }}
|
containerPort: {{ .Values.proxy.ports.pulsar }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and (.Values.tls.enabled) (.Values.tls.proxy.enabled) }}
|
{{- if and (.Values.tls.enabled) (.Values.tls.proxy.enabled) }}
|
||||||
- name: https
|
- name: sts-https
|
||||||
containerPort: {{ .Values.proxy.ports.https }}
|
containerPort: {{ .Values.proxy.ports.containerPorts.https }}
|
||||||
- name: "{{ .Values.tlsPrefix }}pulsarssl"
|
- name: "sts-{{ .Values.tlsPrefix }}pulsarssl"
|
||||||
containerPort: {{ .Values.proxy.ports.pulsarssl }}
|
containerPort: {{ .Values.proxy.ports.pulsarssl }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
{{- if and .Values.rbac.enabled .Values.rbac.psp }}
|
||||||
|
|||||||
@ -903,6 +903,9 @@ proxy:
|
|||||||
https: 443
|
https: 443
|
||||||
pulsar: 6650
|
pulsar: 6650
|
||||||
pulsarssl: 6651
|
pulsarssl: 6651
|
||||||
|
containerPorts:
|
||||||
|
http: 8080
|
||||||
|
https: 8443
|
||||||
service:
|
service:
|
||||||
annotations: {}
|
annotations: {}
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user