feat: add topology spread constraints for gateway and controller (#3171)

Signed-off-by: Wilson Wu <iwilsonwu@gmail.com>
This commit is contained in:
Wilson Wu
2025-12-26 17:30:31 +08:00
committed by jingze
parent 95ff52cde9
commit c7028bd7f2
3 changed files with 12 additions and 0 deletions

View File

@@ -250,6 +250,10 @@ template:
tolerations:
{{- toYaml . | nindent 6 }}
{{- end }}
{{- with .Values.gateway.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 6 }}
{{- end }}
volumes:
- emptyDir: {}
name: workload-socket

View File

@@ -289,6 +289,10 @@ spec:
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.controller.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: log
emptyDir: {}

View File

@@ -522,6 +522,8 @@ gateway:
affinity: {}
topologySpreadConstraints: []
# -- If specified, the gateway will act as a network gateway for the given network.
networkGateway: ""
@@ -629,6 +631,8 @@ controller:
affinity: {}
topologySpreadConstraints: []
autoscaling:
enabled: false
minReplicas: 1