diff --git a/charts/spire/README.md b/charts/spire/README.md index 9d63c91..7b493f8 100644 --- a/charts/spire/README.md +++ b/charts/spire/README.md @@ -365,6 +365,7 @@ Kubernetes: `>=1.21.0-0` | spire-server.upstreamAuthority.disk.secret.create | bool | `true` | If disabled requires you to create a secret with the given keys (certificate, key and optional bundle) yourself. | | spire-server.upstreamAuthority.disk.secret.data | object | `{"bundle":"","certificate":"","key":""}` | If secret creation is enabled, will create a secret with following certificate info | | spire-server.upstreamAuthority.disk.secret.name | string | `"spiffe-upstream-ca"` | If secret creation is disabled, the secret with this name will be used. | +| tornjak-frontend.affinity | object | `{}` | | | tornjak-frontend.apiServerURL | string | `"http://localhost:10000/"` | URL of the Tornjak APIs (backend) Since Tornjak Frontend runs in the browser, this URL must be accessible from the machine running a browser. | | tornjak-frontend.fullnameOverride | string | `""` | | | tornjak-frontend.image.pullPolicy | string | `"IfNotPresent"` | | @@ -385,5 +386,7 @@ 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 | `[]` | | +| tornjak-frontend.topologySpreadConstraints | list | `[]` | | ---------------------------------------------- diff --git a/charts/spire/charts/tornjak-frontend/README.md b/charts/spire/charts/tornjak-frontend/README.md index b8a254f..e706d15 100644 --- a/charts/spire/charts/tornjak-frontend/README.md +++ b/charts/spire/charts/tornjak-frontend/README.md @@ -49,6 +49,7 @@ port forwarding. See the chart NOTES output for more details. | Key | Type | Default | Description | |-----|------|---------|-------------| +| affinity | object | `{}` | | | apiServerURL | string | `"http://localhost:10000/"` | URL of the Tornjak APIs (backend) Since Tornjak Frontend runs in the browser, this URL must be accessible from the machine running a browser. | | fullnameOverride | string | `""` | | | image.pullPolicy | string | `"IfNotPresent"` | | @@ -69,4 +70,6 @@ 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 | `[]` | | +| topologySpreadConstraints | list | `[]` | | ---------------------------------------------- diff --git a/charts/spire/charts/tornjak-frontend/templates/deployment.yaml b/charts/spire/charts/tornjak-frontend/templates/deployment.yaml index 8566a31..cef0fab 100644 --- a/charts/spire/charts/tornjak-frontend/templates/deployment.yaml +++ b/charts/spire/charts/tornjak-frontend/templates/deployment.yaml @@ -55,6 +55,18 @@ spec: nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} + {{- with .Values.affinity }} + affinity: + {{- toYaml . | nindent 8 }} + {{- end }} + {{- with .Values.tolerations }} + 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 e17d532..5abc2e8 100644 --- a/charts/spire/charts/tornjak-frontend/values.yaml +++ b/charts/spire/charts/tornjak-frontend/values.yaml @@ -45,6 +45,12 @@ service: nodeSelector: kubernetes.io/arch: amd64 +affinity: {} + +tolerations: [] + +topologySpreadConstraints: [] + # -- Provide minimal resources to prevent accidental crashes due to resource exhaustion # resources: # requests: