Skip to content

Commit

Permalink
Revert "OSSM-5556: Set net.ipv4.ip_unprivileged_port_start=0 in ing…
Browse files Browse the repository at this point in the history
…ress and egress gateways (maistra#951)"

This reverts commit eb8ce0e.
  • Loading branch information
jewertow committed Mar 14, 2024
1 parent eb8ce0e commit caea64b
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ spec:
runAsGroup: 1337
runAsNonRoot: true
fsGroup: 1337
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "0"
{{- end }}
serviceAccountName: {{ $gateway.name }}-service-account
{{- if .Values.global.priorityClassName }}
Expand Down Expand Up @@ -213,6 +210,10 @@ spec:
- name: TRUST_DOMAIN
value: "{{ .Values.meshConfig.trustDomain }}"
{{- end }}
{{- if not $gateway.runAsRoot }}
- name: ISTIO_META_UNPRIVILEGED_POD
value: "true"
{{- end }}
{{- range $key, $val := $gateway.env }}
- name: {{ $key }}
value: "{{ $val }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ spec:
runAsGroup: 1337
runAsNonRoot: true
fsGroup: 1337
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "0"
{{- end }}
serviceAccountName: {{ $gateway.name | default "istio-egressgateway" }}-service-account
{{- if .Values.global.priorityClassName }}
Expand Down Expand Up @@ -99,6 +96,10 @@ spec:
{{ toYaml .Values.global.defaultResources | indent 12 }}
{{- end }}
env:
{{- if not $gateway.runAsRoot }}
- name: ISTIO_META_UNPRIVILEGED_POD
value: "true"
{{- end }}
{{- range $key, $val := $gateway.env }}
- name: {{ $key }}
value: {{ $val | quote }}
Expand Down
4 changes: 2 additions & 2 deletions manifests/charts/gateways/istio-egress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ gateways:
name: istio-egressgateway
ports:
- port: 80
targetPort: 80
targetPort: 8080
name: http2
protocol: TCP
- port: 443
name: https
targetPort: 443
targetPort: 8443
protocol: TCP

labels:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ spec:
runAsGroup: 1337
runAsNonRoot: true
fsGroup: 1337
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "0"
{{- end }}
serviceAccountName: {{ $gateway.name }}-service-account
{{- if .Values.global.priorityClassName }}
Expand Down Expand Up @@ -213,6 +210,10 @@ spec:
- name: TRUST_DOMAIN
value: "{{ .Values.meshConfig.trustDomain }}"
{{- end }}
{{- if not $gateway.runAsRoot }}
- name: ISTIO_META_UNPRIVILEGED_POD
value: "true"
{{- end }}
{{- range $key, $val := $gateway.env }}
- name: {{ $key }}
value: "{{ $val }}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ spec:
runAsGroup: 1337
runAsNonRoot: true
fsGroup: 1337
sysctls:
- name: net.ipv4.ip_unprivileged_port_start
value: "0"
{{- end }}
serviceAccountName: {{ $gateway.name | default "istio-ingressgateway" }}-service-account
{{- if .Values.global.priorityClassName }}
Expand Down Expand Up @@ -99,6 +96,10 @@ spec:
{{ toYaml .Values.global.defaultResources | indent 12 }}
{{- end }}
env:
{{- if not $gateway.runAsRoot }}
- name: ISTIO_META_UNPRIVILEGED_POD
value: "true"
{{- end }}
{{- range $key, $val := $gateway.env }}
- name: {{ $key }}
value: {{ $val | quote }}
Expand Down
4 changes: 2 additions & 2 deletions manifests/charts/gateways/istio-ingress/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ gateways:
name: status-port
protocol: TCP
- port: 80
targetPort: 80
targetPort: 8080
name: http2
protocol: TCP
- port: 443
targetPort: 443
targetPort: 8443
name: https
protocol: TCP

Expand Down

0 comments on commit caea64b

Please sign in to comment.