Allow to configure affinity for tornjak-frontend

Signed-off-by: Marco Franssen <[email protected]>
This commit is contained in:
Marco Franssen
2023-05-16 20:29:41 +02:00
parent aed6fdfe4e
commit 3537161cdf
4 changed files with 8 additions and 0 deletions
@@ -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"` | |
@@ -55,6 +55,10 @@ spec:
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
- name: cache
emptyDir: {}
@@ -45,6 +45,8 @@ service:
nodeSelector:
kubernetes.io/arch: amd64
affinity: {}
# -- Provide minimal resources to prevent accidental crashes due to resource exhaustion
# resources:
# requests: