From 5cc26d3142eb691bea6d5d4bb1736bf4045382da Mon Sep 17 00:00:00 2001 From: Marco Franssen Date: Tue, 16 May 2023 20:10:54 +0200 Subject: [PATCH] Allow to configure tolerations for tornjak-frontend Signed-off-by: Marco Franssen --- charts/spire/README.md | 1 + charts/spire/charts/tornjak-frontend/README.md | 1 + .../spire/charts/tornjak-frontend/templates/deployment.yaml | 4 ++++ charts/spire/charts/tornjak-frontend/values.yaml | 2 ++ 4 files changed, 8 insertions(+) diff --git a/charts/spire/README.md b/charts/spire/README.md index de36056..f98eb92 100644 --- a/charts/spire/README.md +++ b/charts/spire/README.md @@ -386,5 +386,6 @@ Kubernetes: `>=1.21.0-0` | tornjak-frontend.serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | 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 | `[]` | | ---------------------------------------------- diff --git a/charts/spire/charts/tornjak-frontend/README.md b/charts/spire/charts/tornjak-frontend/README.md index 9bf6e65..baa3c7e 100644 --- a/charts/spire/charts/tornjak-frontend/README.md +++ b/charts/spire/charts/tornjak-frontend/README.md @@ -70,4 +70,5 @@ port forwarding. See the chart NOTES output for more details. | serviceAccount.create | bool | `true` | Specifies whether a service account should be created | | 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 | `[]` | | ---------------------------------------------- diff --git a/charts/spire/charts/tornjak-frontend/templates/deployment.yaml b/charts/spire/charts/tornjak-frontend/templates/deployment.yaml index 68aac56..b404a63 100644 --- a/charts/spire/charts/tornjak-frontend/templates/deployment.yaml +++ b/charts/spire/charts/tornjak-frontend/templates/deployment.yaml @@ -59,6 +59,10 @@ spec: affinity: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.tolerations }} + tolerations: + {{- 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 9b7a48e..08faf8e 100644 --- a/charts/spire/charts/tornjak-frontend/values.yaml +++ b/charts/spire/charts/tornjak-frontend/values.yaml @@ -47,6 +47,8 @@ nodeSelector: affinity: {} +tolerations: [] + # -- Provide minimal resources to prevent accidental crashes due to resource exhaustion # resources: # requests: