Przeglądaj źródła

feat(helm): adding liveness and readiness probes customizations (#4116)

* feat(helm): adding liveness and readiness probes customizations

* chore(helm): bump chart version to 2.2.0

***NO_CI***
Ivann LARUELLE 4 lat temu
rodzic
commit
826e6d4bdf
3 zmienionych plików z 13 dodań i 7 usunięć
  1. 1 1
      dev/helm/Chart.yaml
  2. 2 6
      dev/helm/templates/deployment.yaml
  3. 10 0
      dev/helm/values.yaml

+ 1 - 1
dev/helm/Chart.yaml

@@ -2,7 +2,7 @@ apiVersion: v2
 name: wiki
 # This is the chart version. This version number should be incremented each time you make changes
 # to the chart and its templates, including the app version.
-version: 2.1.0
+version: 2.2.0
 # This is the version number of the application being deployed. This version number should be
 # incremented each time you make changes to the application.
 AppVersion: latest

+ 2 - 6
dev/helm/templates/deployment.yaml

@@ -56,13 +56,9 @@ spec:
               containerPort: 3000
               protocol: TCP
           livenessProbe:
-            httpGet:
-              path: /healthz
-              port: http
+            {{- toYaml .Values.livenessProbe | nindent 12 }}
           readinessProbe:
-            httpGet:
-              path: /healthz
-              port: http
+            {{- toYaml .Values.readinessProbe | nindent 12 }}
           resources:
             {{- toYaml .Values.resources | nindent 12 }}
       {{- with .Values.nodeSelector }}

+ 10 - 0
dev/helm/values.yaml

@@ -21,6 +21,16 @@ serviceAccount:
   # If not set and create is true, a name is generated using the fullname template
   name:
 
+livenessProbe:
+  httpGet:
+    path: /healthz
+    port: http
+
+readinessProbe:
+  httpGet:
+    path: /healthz
+    port: http
+
 podSecurityContext: {}
   # fsGroup: 2000