Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose topologySpreadConstraints #71

Merged
merged 2 commits into from
Feb 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ndustrial/deployment/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ maintainers:
- email: devops@ndustrial.io
name: DevOps
# Please make sure that version and appVersion are always the same.
version: 0.1.64
appVersion: 0.1.64
version: 0.1.65
appVersion: 0.1.65
5 changes: 3 additions & 2 deletions ndustrial/deployment/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ When this chart is bumped, the `nio-api` chart should also be bumped to pull in
| `updateStrategy.rollingUpdate` | Deployment deployment rolling update configuration parameters | `{}` |
| `terminationGracePeriodSeconds` | Deployment deployment termination Grace Period Seconds | `30` |


### Service parameters

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



### Pod Affinity parameters
Expand All @@ -193,7 +194,7 @@ When this chart is bumped, the `nio-api` chart should also be bumped to pull in
| `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` |


### Metrics paramaters
### Metrics parameters

| Name | Description | Value |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------ | ------- |
Expand Down
3 changes: 3 additions & 0 deletions ndustrial/deployment/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ spec:
{{- if .Values.tolerations }}
tolerations: {{- include "nio-common.tplvalues.render" (dict "value" .Values.tolerations "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.topologySpreadConstraints }}
topologySpreadConstraints: {{- include "nio-common.tplvalues.render" (dict "value" .Values.topologySpreadConstraints "context" $) | nindent 8 }}
{{- end }}
{{- if .Values.hostAliases }}
hostAliases: {{- include "nio-common.tplvalues.render" (dict "value" .Values.hostAliases "context" $) | nindent 8 }}
{{- end }}
Expand Down
5 changes: 5 additions & 0 deletions ndustrial/deployment/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,11 @@ podDisruptionBudget:
## @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".
maxUnavailable:

## ref: https://kubernetes.io/docs/concepts/scheduling-eviction/topology-spread-constraints/
## @param topologySpreadConstraints Constraints to control how Pods are spread across your cluster among failure-domains

topologySpreadConstraints: {}

## @section Metrics paramaters

metrics:
Expand Down
Loading