From 54500d4c5c928c30a83965e2036cd0a59efbd41f Mon Sep 17 00:00:00 2001 From: Mykhailo Ryzhman Date: Tue, 4 Nov 2025 12:33:32 +0200 Subject: [PATCH] chore: add liveness and readiness probes --- charts/statgpt/Chart.yaml | 2 +- charts/statgpt/README.md | 21 ++++++++++- charts/statgpt/README.md.gotmpl | 3 ++ charts/statgpt/values.yaml | 64 +++++++++++++++++++++++++++++++++ 4 files changed, 88 insertions(+), 2 deletions(-) diff --git a/charts/statgpt/Chart.yaml b/charts/statgpt/Chart.yaml index 3513070..9d48911 100644 --- a/charts/statgpt/Chart.yaml +++ b/charts/statgpt/Chart.yaml @@ -54,4 +54,4 @@ maintainers: name: statgpt sources: - https://github.com/epam/statgpt-helm -version: 1.0.4 +version: 1.0.5 diff --git a/charts/statgpt/README.md b/charts/statgpt/README.md index fa6b2e0..fdc654c 100644 --- a/charts/statgpt/README.md +++ b/charts/statgpt/README.md @@ -1,6 +1,6 @@ # statgpt -![Version: 1.0.4](https://img.shields.io/badge/Version-1.0.4-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) +![Version: 1.0.5](https://img.shields.io/badge/Version-1.0.5-informational?style=flat-square) ![AppVersion: 1.0.0](https://img.shields.io/badge/AppVersion-1.0.0-informational?style=flat-square) Umbrella chart for StatGPT solution @@ -145,8 +145,10 @@ helm install my-release . --namespace my-namespace --values values.yaml --set ad | admin-backend.initContainers[0].image | string | `"{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"` | | | admin-backend.initContainers[0].imagePullPolicy | string | `"IfNotPresent"` | | | admin-backend.initContainers[0].name | string | `"alembic"` | | +| admin-backend.livenessProbe.enabled | bool | `true` | Enable livenessProbe | | admin-backend.metrics.enabled | bool | `false` | Enable metrics collection | | admin-backend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics | +| admin-backend.readinessProbe.enabled | bool | `true` | Enable readinessProbe | | admin-backend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container | | admin-backend.resources.limits.memory | string | `"4Gi"` | Maximum memory limit for the container | | admin-backend.resources.requests.cpu | string | `"100m"` | Minimum CPU request for resource scheduling | @@ -165,8 +167,14 @@ helm install my-release . --namespace my-namespace --values values.yaml --set ad | admin-frontend.ingress.enabled | bool | `false` | Enable Ingress resource | | admin-frontend.ingress.ingressClassName | string | `"nginx"` | Specify the Ingress class name | | admin-frontend.ingress.path | string | `"/"` | Path for the Ingress resource | +| admin-frontend.livenessProbe.enabled | bool | `true` | Enable livenessProbe | +| admin-frontend.livenessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe | +| admin-frontend.livenessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path | | admin-frontend.metrics.enabled | bool | `false` | Enable metrics collection | | admin-frontend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics | +| admin-frontend.readinessProbe.enabled | bool | `true` | Enable readinessProbe | +| admin-frontend.readinessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe | +| admin-frontend.readinessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path | | admin-frontend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container | | admin-frontend.resources.limits.memory | string | `"2Gi"` | Maximum memory limit for the container | | admin-frontend.resources.requests.cpu | string | `"500m"` | Minimum CPU request for resource scheduling | @@ -193,10 +201,12 @@ helm install my-release . --namespace my-namespace --values values.yaml --set ad | chat-backend.image.registry | string | `"docker.io"` | Docker registry URL | | chat-backend.image.repository | string | `"epam/statgpt-chat-backend"` | Image repository name | | chat-backend.image.tag | string | `"0.1.0"` | Image tag or version | +| chat-backend.livenessProbe.enabled | bool | `true` | Enable livenessProbe | | chat-backend.metrics.enabled | bool | `false` | Enable metrics collection | | chat-backend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics | | chat-backend.podSecurityContext.enabled | bool | `true` | Enable security context for the pod | | chat-backend.podSecurityContext.runAsUser | int | `5678` | User ID under which the pod runs | +| chat-backend.readinessProbe.enabled | bool | `true` | Enable readinessProbe | | chat-backend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container | | chat-backend.resources.limits.memory | string | `"4Gi"` | Maximum memory limit for the container | | chat-backend.resources.requests.cpu | string | `"100m"` | Minimum CPU request for resource scheduling | @@ -252,9 +262,18 @@ helm install my-release . --namespace my-namespace --values values.yaml --set ad | portal-frontend.ingress.enabled | bool | `false` | Enable Ingress resource | | portal-frontend.ingress.ingressClassName | string | `"nginx"` | Specify the Ingress class name | | portal-frontend.ingress.path | string | `"/"` | Path for the Ingress resource | +| portal-frontend.livenessProbe.enabled | bool | `true` | Enable livenessProbe | +| portal-frontend.livenessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe | +| portal-frontend.livenessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path | | portal-frontend.metrics.enabled | bool | `false` | Enable metrics collection | | portal-frontend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics | +| portal-frontend.readinessProbe.enabled | bool | `true` | Enable readinessProbe | +| portal-frontend.readinessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe | +| portal-frontend.readinessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path | | portal-frontend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container | | portal-frontend.resources.limits.memory | string | `"4Gi"` | Maximum memory limit for the container | | portal-frontend.resources.requests.cpu | string | `"100m"` | Minimum CPU request for resource scheduling | | portal-frontend.resources.requests.memory | string | `"0.5Gi"` | Minimum memory request for resource scheduling | + +-------------------------------------------------- +Generated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs): `docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:latest` diff --git a/charts/statgpt/README.md.gotmpl b/charts/statgpt/README.md.gotmpl index accaa75..77904c7 100644 --- a/charts/statgpt/README.md.gotmpl +++ b/charts/statgpt/README.md.gotmpl @@ -79,3 +79,6 @@ helm install my-release . --namespace my-namespace --values values.yaml --set ad ``` {{ template "chart.valuesSection" . }} + +-------------------------------------------------- +Generated from chart metadata using [helm-docs](https://github.com/norwoodj/helm-docs): `docker run --rm --volume "$(pwd):/helm-docs" -u $(id -u) jnorwood/helm-docs:latest` diff --git a/charts/statgpt/values.yaml b/charts/statgpt/values.yaml index 5460638..c5711a3 100644 --- a/charts/statgpt/values.yaml +++ b/charts/statgpt/values.yaml @@ -43,6 +43,18 @@ chat-backend: # -- HTTP port for the application http: 5000 + ### Liveness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + livenessProbe: + # -- Enable livenessProbe + enabled: true + + ### Readiness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + readinessProbe: + # -- Enable readinessProbe + enabled: true + ### Resource Management ### # ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ resources: @@ -164,6 +176,18 @@ admin-backend: # -- HTTP port for the application http: 8000 + ### Liveness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + livenessProbe: + # -- Enable livenessProbe + enabled: true + + ### Readiness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + readinessProbe: + # -- Enable readinessProbe + enabled: true + ### Resource Management ### # ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ resources: @@ -284,6 +308,26 @@ admin-frontend: # -- HTTP port for the application http: 3000 + ### Liveness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + livenessProbe: + # -- Enable livenessProbe + enabled: true + # -- HTTP GET request configuration for liveness probe + httpGet: + # -- Health check endpoint path + path: /api/health + + ### Readiness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + readinessProbe: + # -- Enable readinessProbe + enabled: true + # -- HTTP GET request configuration for liveness probe + httpGet: + # -- Health check endpoint path + path: /api/health + ### Resource Management ### # ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ resources: @@ -585,6 +629,26 @@ portal-frontend: # -- HTTP port for the application http: 3000 + ### Liveness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + livenessProbe: + # -- Enable livenessProbe + enabled: true + # -- HTTP GET request configuration for liveness probe + httpGet: + # -- Health check endpoint path + path: /api/health + + ### Readiness Probes configuration ### + # ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes + readinessProbe: + # -- Enable readinessProbe + enabled: true + # -- HTTP GET request configuration for liveness probe + httpGet: + # -- Health check endpoint path + path: /api/health + ### Resource Management ### # ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ resources: