-
Notifications
You must be signed in to change notification settings - Fork 65
Open
Description
Is your feature request related to a problem? Please describe.
Currently, the synapse.ingress.service configuration only exposes the synapse.ingress.service.type option. It would be very helpful to also support internalTrafficPolicy as part of this configuration, for example: synapse.ingress.service.internalTrafficPolicy.
Adding this option would provide more flexibility in controlling service traffic routing, especially for clusters where internal traffic handling policies are important for performance and reliability.
Describe the solution you'd like
{{- with $.Values.synapse -}}
{{- if .enabled -}}
apiVersion: v1
kind: Service
metadata:
labels:
{{- include "element-io.synapse-ingress.labels" (dict "root" $ "context" $.Values.haproxy) | nindent 4 }}
name: {{ $.Release.Name }}-synapse
namespace: {{ $.Release.Namespace }}
spec:
type: {{ .ingress.service.type | default $.Values.ingress.service.type }}
internalTrafficPolicy: {{ .ingress.service.internalTrafficPolicy | default "Cluster" }} # ππ Here
ipFamilyPolicy: PreferDualStack
ports:
- name: haproxy-synapse
port: 8008
targetPort: haproxy-synapse
- name: haproxy-403
port: 8009
targetPort: haproxy-403
selector:
app.kubernetes.io/instance: "{{ $.Release.Name }}-haproxy"
{{- end -}}
{{- end -}}Describe alternatives you've considered
helm upgrade --install xxxx
kubectl patch service ess-synapse -n ess -p '{"spec":{"internalTrafficPolicy":"Local"}}'Metadata
Metadata
Assignees
Labels
No labels