Skip to content

Commit

Permalink
Merge pull request #86 from mirobertod/master
Browse files Browse the repository at this point in the history
add topologySpreadConstraints
  • Loading branch information
mooreds authored May 31, 2022
2 parents 5dc260e + a8531b2 commit b872bba
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ The command removes all the Kubernetes components associated with the chart and
| serviceAccount.name | string | `""` | Service account name to use. If not set the "default" service account will be used |
| startupProbe | object | `{"failureThreshold":20,"httpGet":{"path":"/","port":"http"},"periodSeconds":10,"timeoutSeconds":5}` | Configures a startupProbe to ensure fusionauth has finished starting up |
| tolerations | list | `[]` | Define tolerations for kubernetes to use when scheduling fusionauth pods. |
| topologySpreadConstraints | list | `[]` | Define topologySpreadConstraints for kubernetes to use when scheduling fusionauth pods. |


## Releasing the Chart
Expand Down
4 changes: 4 additions & 0 deletions chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,5 +169,9 @@ spec:
{{- with .Values.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
restartPolicy: Always
3 changes: 3 additions & 0 deletions chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,9 @@
},
"tolerations": {
"type": "array"
},
"topologySpreadConstraints": {
"type": "array"
}
}
}
4 changes: 4 additions & 0 deletions chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,10 @@ tolerations: []
# affinty -- Define affinity for kubernetes to use when scheduling fusionauth pods.
affinity: {}

# topologySpreadConstraints -- Define topologySpreadConstraints for kubernetes to use
# when scheduling fusionauth pods.
topologySpreadConstraints: []

# dnsConfig -- Define dnsConfig for fusionauth pods.
dnsConfig: {}
# dnsPolicy -- Define dnsPolicy for fusionauth pods.
Expand Down

0 comments on commit b872bba

Please sign in to comment.