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 GitHub
parent 08a7204085
commit 10ca6d9515
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

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

View File

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