Skip to content

Commit af32767

Browse files
authored
fix: revert Topology Spread Constraints to apisix (#760)
1 parent 97c26c0 commit af32767

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

charts/apisix/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -211,5 +211,6 @@ The command removes all the Kubernetes components associated with the chart and
211211
| serviceAccount.name | string | `""` | |
212212
| timezone | string | `""` | timezone is the timezone where apisix uses. For example: "UTC" or "Asia/Shanghai" This value will be set on apisix container's environment variable TZ. You may need to set the timezone to be consistent with your local time zone, otherwise the apisix's logs may used to retrieve event maybe in wrong timezone. |
213213
| tolerations | list | `[]` | List of node taints to tolerate |
214+
| topologySpreadConstraints | list | `[]` | Topology Spread Constraints for pod assignment spread across your cluster among failure-domains ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods |
214215
| updateStrategy | object | `{}` | |
215216
| useDaemonSet | bool | `false` | set false to use `Deployment`, set true to use `DaemonSet` |

charts/apisix/templates/deployment.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -290,3 +290,7 @@ spec:
290290
tolerations:
291291
{{- toYaml . | nindent 8 }}
292292
{{- end }}
293+
{{- with .Values.topologySpreadConstraints }}
294+
topologySpreadConstraints:
295+
{{- tpl (. | toYaml) $ | nindent 8 }}
296+
{{- end }}

charts/apisix/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ nodeSelector: {}
8585
tolerations: []
8686
# -- Set affinity for Apache APISIX deploy
8787
affinity: {}
88+
# -- Topology Spread Constraints for pod assignment spread across your cluster among failure-domains
89+
# ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-topology-spread-constraints/#spread-constraints-for-pods
90+
topologySpreadConstraints: []
8891

8992
# -- timezone is the timezone where apisix uses.
9093
# For example: "UTC" or "Asia/Shanghai"

0 commit comments

Comments
 (0)