Skip to content

Commit f245ed3

Browse files
authored
Merge pull request #71 from ndustrialio/DEVOPS-1191
Expose topologySpreadConstraints
2 parents 8c1e1e3 + 7f14230 commit f245ed3

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

ndustrial/deployment/Chart.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ maintainers:
1313
1414
name: DevOps
1515
# Please make sure that version and appVersion are always the same.
16-
version: 0.1.64
17-
appVersion: 0.1.64
16+
version: 0.1.65
17+
appVersion: 0.1.65

ndustrial/deployment/README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ When this chart is bumped, the `nio-api` chart should also be bumped to pull in
7676
| `updateStrategy.rollingUpdate` | Deployment deployment rolling update configuration parameters | `{}` |
7777
| `terminationGracePeriodSeconds` | Deployment deployment termination Grace Period Seconds | `30` |
7878

79-
8079
### Service parameters
8180

8281
| Name | Description | Value |
@@ -175,6 +174,8 @@ When this chart is bumped, the `nio-api` chart should also be bumped to pull in
175174
| `containerSecurityContext.enabled` | Enabled Deployment containers' Security Context | `false` |
176175
| `containerSecurityContext.runAsUser` | Set Deployment container's Security Context runAsUser | `1001` |
177176
| `containerSecurityContext.runAsNonRoot` | Set Deployment container's Security Context runAsNonRoot | `true` |
177+
| `topologySpreadConstraints` | Set pod topology spread constraints | `true` |
178+
178179

179180

180181
### Pod Affinity parameters
@@ -193,7 +194,7 @@ When this chart is bumped, the `nio-api` chart should also be bumped to pull in
193194
| `podDisruptionBudget.maxUnavailable` | An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable". | `nil` |
194195

195196

196-
### Metrics paramaters
197+
### Metrics parameters
197198

198199
| Name | Description | Value |
199200
| ----------------------------------------- | ------------------------------------------------------------------------------------------------ | ------- |

ndustrial/deployment/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ spec:
6666
{{- if .Values.tolerations }}
6767
tolerations: {{- include "nio-common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }}
6868
{{- end }}
69+
{{- if .Values.topologySpreadConstraints }}
70+
topologySpreadConstraints: {{- include "nio-common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }}
71+
{{- end }}
6972
{{- if .Values.hostAliases }}
7073
hostAliases: {{- include "nio-common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
7174
{{- end }}

ndustrial/deployment/values.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,11 @@ podDisruptionBudget:
538538
## @param podDisruptionBudget.maxUnavailable An eviction is allowed if at most "maxUnavailable" pods selected by "selector" are unavailable after the eviction, i.e. even in absence of the evicted pod. For example, one can prevent all voluntary evictions by specifying 0. This is a mutually exclusive setting with "minAvailable".
539539
maxUnavailable:
540540

541+
## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
542+
## @param topologySpreadConstraints Constraints to control how Pods are spread across your cluster among failure-domains
543+
544+
topologySpreadConstraints: {}
545+
541546
## @section Metrics paramaters
542547

543548
metrics:

0 commit comments

Comments
 (0)