Upgrade Tornjak to new image v1.2.1 (#299)
This upgrade enables the production version of React in Tornjak Frontend with a smaller footprint and faster startup time. Using Tornjak v1.2.1 release https://github.com/spiffe/tornjak/releases/tag/v1.2.1 --------- Signed-off-by: Mariusz Sabath <[email protected]>
This commit is contained in:
@@ -3,7 +3,7 @@ name: tornjak-frontend
|
||||
description: A Helm chart to deploy Tornjak frontend
|
||||
type: application
|
||||
version: 0.1.0
|
||||
appVersion: "v1.2.0"
|
||||
appVersion: "v1.2.1"
|
||||
home: https://github.com/spiffe/helm-charts/tree/main/charts/spire
|
||||
sources:
|
||||
- https://github.com/spiffe/tornjak
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
<!-- This README.md is generated. Please edit README.md.gotmpl -->
|
||||
|
||||
  
|
||||
  
|
||||
[](https://github.com/spiffe/spiffe/blob/main/MATURITY.md#development)
|
||||
|
||||
A Helm chart to deploy Tornjak frontend
|
||||
@@ -71,6 +71,12 @@ 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 |
|
||||
| startupProbe.enabled | bool | `true` | Enable startupProbe on Tornjak frontend container |
|
||||
| startupProbe.failureThreshold | int | `6` | Failure threshold for startupProbe |
|
||||
| startupProbe.initialDelaySeconds | int | `5` | Initial delay seconds for startupProbe |
|
||||
| startupProbe.periodSeconds | int | `10` | Period seconds for startupProbe |
|
||||
| startupProbe.successThreshold | int | `1` | Success threshold for startupProbe |
|
||||
| startupProbe.timeoutSeconds | int | `5` | Timeout seconds for startupProbe |
|
||||
| tolerations | list | `[]` | |
|
||||
| topologySpreadConstraints | list | `[]` | |
|
||||
----------------------------------------------
|
||||
|
||||
@@ -39,18 +39,20 @@ spec:
|
||||
- name: REACT_APP_SPIRE_HEALTH_CHECK_ENABLE
|
||||
value: "{{ .Values.spireHealthCheck.enabled }}"
|
||||
{{- end }}
|
||||
{{- if .Values.startupProbe.enabled }}
|
||||
startupProbe:
|
||||
httpGet:
|
||||
scheme: HTTP
|
||||
port: {{ .Values.service.port }}
|
||||
failureThreshold: 6
|
||||
initialDelaySeconds: 120
|
||||
periodSeconds: 45
|
||||
successThreshold: 1
|
||||
timeoutSeconds: 20
|
||||
failureThreshold: {{ .Values.startupProbe.failureThreshold }}
|
||||
initialDelaySeconds: {{ .Values.startupProbe.initialDelaySeconds }}
|
||||
periodSeconds: {{ .Values.startupProbe.periodSeconds }}
|
||||
successThreshold: {{ .Values.startupProbe.successThreshold }}
|
||||
timeoutSeconds: {{ .Values.startupProbe.timeoutSeconds }}
|
||||
{{- end }}
|
||||
volumeMounts:
|
||||
- name: cache
|
||||
mountPath: /usr/src/app/node_modules/.cache
|
||||
mountPath: /usr/src/app/
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
|
||||
@@ -71,3 +71,20 @@ apiServerURL: "http://localhost:10000/" # 👈 Use it for minikube or kind
|
||||
spireHealthCheck:
|
||||
# -- Enables the SPIRE Healthchecker indicator
|
||||
enabled: true
|
||||
|
||||
## Configure extra options for Tornjak frontend container's startup probe
|
||||
## ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/#define-startup-probes
|
||||
##
|
||||
startupProbe:
|
||||
# -- Enable startupProbe on Tornjak frontend container
|
||||
enabled: true
|
||||
# -- Initial delay seconds for startupProbe
|
||||
initialDelaySeconds: 5
|
||||
# -- Period seconds for startupProbe
|
||||
periodSeconds: 10
|
||||
# -- Timeout seconds for startupProbe
|
||||
timeoutSeconds: 5
|
||||
# -- Failure threshold for startupProbe
|
||||
failureThreshold: 6
|
||||
# -- Success threshold for startupProbe
|
||||
successThreshold: 1
|
||||
|
||||
Reference in New Issue
Block a user