diff --git a/charts/spire/README.md b/charts/spire/README.md index f98eb92..7b493f8 100644 --- a/charts/spire/README.md +++ b/charts/spire/README.md @@ -387,5 +387,6 @@ Kubernetes: `>=1.21.0-0` | tornjak-frontend.serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | | tornjak-frontend.spireHealthCheck.enabled | bool | `true` | Enables the SPIRE Healthchecker indicator | | tornjak-frontend.tolerations | list | `[]` | | +| tornjak-frontend.topologySpreadConstraints | list | `[]` | | ---------------------------------------------- diff --git a/charts/spire/charts/tornjak-frontend/README.md b/charts/spire/charts/tornjak-frontend/README.md index baa3c7e..e706d15 100644 --- a/charts/spire/charts/tornjak-frontend/README.md +++ b/charts/spire/charts/tornjak-frontend/README.md @@ -71,4 +71,5 @@ port forwarding. See the chart NOTES output for more details. | serviceAccount.name | string | `""` | The name of the service account to use. If not set and create is true, a name is generated using the fullname template | | spireHealthCheck.enabled | bool | `true` | Enables the SPIRE Healthchecker indicator | | tolerations | list | `[]` | | +| topologySpreadConstraints | list | `[]` | | ---------------------------------------------- diff --git a/charts/spire/charts/tornjak-frontend/templates/deployment.yaml b/charts/spire/charts/tornjak-frontend/templates/deployment.yaml index b404a63..cef0fab 100644 --- a/charts/spire/charts/tornjak-frontend/templates/deployment.yaml +++ b/charts/spire/charts/tornjak-frontend/templates/deployment.yaml @@ -63,6 +63,10 @@ spec: tolerations: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.topologySpreadConstraints }} + topologySpreadConstraints: + {{- toYaml . | nindent 8 }} + {{- end }} volumes: - name: cache emptyDir: {} diff --git a/charts/spire/charts/tornjak-frontend/values.yaml b/charts/spire/charts/tornjak-frontend/values.yaml index 08faf8e..5abc2e8 100644 --- a/charts/spire/charts/tornjak-frontend/values.yaml +++ b/charts/spire/charts/tornjak-frontend/values.yaml @@ -49,6 +49,8 @@ affinity: {} tolerations: [] +topologySpreadConstraints: [] + # -- Provide minimal resources to prevent accidental crashes due to resource exhaustion # resources: # requests: