From 767943368ea35494c1d9c4675ac50c104661921a Mon Sep 17 00:00:00 2001
From: Grraahaam <72856427+Grraahaam@users.noreply.github.com>
Date: Thu, 16 Mar 2023 01:32:54 +0100
Subject: [PATCH] fix(conf): mongodb probes + docs
---
helm-charts/infisical/values.yaml | 50 +++++++++++++++++++++++++------
1 file changed, 41 insertions(+), 9 deletions(-)
diff --git a/helm-charts/infisical/values.yaml b/helm-charts/infisical/values.yaml
index 9ee624e7b..db91aa26b 100644
--- a/helm-charts/infisical/values.yaml
+++ b/helm-charts/infisical/values.yaml
@@ -122,15 +122,15 @@ backend:
## Documentation : https://infisical.com/docs/self-hosting/configuration/envars
##
backendEnvironmentVariables:
- ## @param backendEnvironmentVariables.ENCRYPTION_KEY **Required** Backend encryption key (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057)). auto-generated variable (if not provided, and not found in an existing secret)
+ ## @param backendEnvironmentVariables.ENCRYPTION_KEY **Required** Backend encryption key (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057))auto-generated variable (if not provided, and not found in an existing secret)
## Command to generate the required value (linux) : 'hexdump -vn16 -e'4/4 "%08X" 1 "\n"' /dev/urandom', 'openssl rand -hex 16'
##
ENCRYPTION_KEY: ""
- ## @param backendEnvironmentVariables.JWT_SIGNUP_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057)). auto-generated variable (if not provided, and not found in an existing secret)
- ## @param backendEnvironmentVariables.JWT_REFRESH_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057)). auto-generated variable (if not provided, and not found in an existing secret)
- ## @param backendEnvironmentVariables.JWT_AUTH_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057)). auto-generated variable (if not provided, and not found in an existing secret)
- ## @param backendEnvironmentVariables.JWT_SERVICE_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057)). auto-generated variable (if not provided, and not found in an existing secret)
- ## @param backendEnvironmentVariables.JWT_MFA_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057)). auto-generated variable (if not provided, and not found in an existing secret)
+ ## @param backendEnvironmentVariables.JWT_SIGNUP_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057))auto-generated variable (if not provided, and not found in an existing secret)
+ ## @param backendEnvironmentVariables.JWT_REFRESH_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057))auto-generated variable (if not provided, and not found in an existing secret)
+ ## @param backendEnvironmentVariables.JWT_AUTH_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057))auto-generated variable (if not provided, and not found in an existing secret)
+ ## @param backendEnvironmentVariables.JWT_SERVICE_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057))auto-generated variable (if not provided, and not found in an existing secret)
+ ## @param backendEnvironmentVariables.JWT_MFA_SECRET **Required** Secrets to sign JWT tokens (128-bit hex value, 32-characters hex, [example](https://stackoverflow.com/a/34329057))auto-generated variable (if not provided, and not found in an existing secret)
## Command to generate the required value (linux) : 'hexdump -vn16 -e'4/4 "%08X" 1 "\n"' /dev/urandom', 'openssl rand -hex 16'
##
JWT_SIGNUP_SECRET: ""
@@ -193,6 +193,38 @@ mongodb:
repository: bitnami/mongodb
pullPolicy: IfNotPresent
tag: "6.0.4-debian-11-r0"
+ ## Bitnami MongoDB(®) pods' liveness probe
+ ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
+ ## @param mongodb.livenessProbe.enabled Enable livenessProbe
+ ## @param mongodb.livenessProbe.initialDelaySeconds Initial delay seconds for livenessProbe
+ ## @param mongodb.livenessProbe.periodSeconds Period seconds for livenessProbe
+ ## @param mongodb.livenessProbe.timeoutSeconds Timeout seconds for livenessProbe
+ ## @param mongodb.livenessProbe.failureThreshold Failure threshold for livenessProbe
+ ## @param mongodb.livenessProbe.successThreshold Success threshold for livenessProbe
+ ##
+ livenessProbe:
+ enabled: true
+ initialDelaySeconds: 30
+ periodSeconds: 20
+ timeoutSeconds: 10
+ failureThreshold: 6
+ successThreshold: 1
+ ## Bitnami MongoDB(®) pods' readiness probe. Evaluated as a template.
+ ## ref: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#container-probes
+ ## @param mongodb.readinessProbe.enabled Enable readinessProbe
+ ## @param mongodb.readinessProbe.initialDelaySeconds Initial delay seconds for readinessProbe
+ ## @param mongodb.readinessProbe.periodSeconds Period seconds for readinessProbe
+ ## @param mongodb.readinessProbe.timeoutSeconds Timeout seconds for readinessProbe
+ ## @param mongodb.readinessProbe.failureThreshold Failure threshold for readinessProbe
+ ## @param mongodb.readinessProbe.successThreshold Success threshold for readinessProbe
+ ##
+ readinessProbe:
+ enabled: true
+ initialDelaySeconds: 5
+ periodSeconds: 10
+ timeoutSeconds: 10
+ failureThreshold: 6
+ successThreshold: 1
## @param mongodb.service.annotations Service annotations
##
service:
@@ -215,7 +247,7 @@ mongodb:
##
databases:
- "infisical"
- ## @param mongodb.auth.rootPassword Database root user name
+ ## @param mongodb.auth.rootUser Database root user name
##
rootUser: root
## @param mongodb.auth.rootPassword Database root user password
@@ -256,10 +288,10 @@ ingress:
## @param ingress.enabled Enable ingress
##
enabled: true
- ## @param mailhog.ingress.ingressClassName Ingress class name
+ ## @param ingress.ingressClassName Ingress class name
##
ingressClassName: nginx
- ## @param mailhog.ingress.annotations Ingress annotations
+ ## @param ingress.annotations Ingress annotations
##
annotations: {}
# kubernetes.io/ingress.class: "nginx"