Skip to content

Commit 92be0ae

Browse files
chore: enable liveness and readiness probes (#17)
1 parent 32a9dc4 commit 92be0ae

File tree

4 files changed

+88
-2
lines changed

4 files changed

+88
-2
lines changed

charts/statgpt/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,4 +54,4 @@ maintainers:
5454
name: statgpt
5555
sources:
5656
- https://github.com/epam/statgpt-helm
57-
version: 1.0.4
57+
version: 1.0.5

charts/statgpt/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# statgpt
22

3-
![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)
3+
![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)
44

55
Umbrella chart for StatGPT solution
66

@@ -145,8 +145,10 @@ helm install my-release . --namespace my-namespace --values values.yaml --set ad
145145
| admin-backend.initContainers[0].image | string | `"{{ .Values.image.registry }}/{{ .Values.image.repository }}:{{ .Values.image.tag }}"` | |
146146
| admin-backend.initContainers[0].imagePullPolicy | string | `"IfNotPresent"` | |
147147
| admin-backend.initContainers[0].name | string | `"alembic"` | |
148+
| admin-backend.livenessProbe.enabled | bool | `true` | Enable livenessProbe |
148149
| admin-backend.metrics.enabled | bool | `false` | Enable metrics collection |
149150
| admin-backend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics |
151+
| admin-backend.readinessProbe.enabled | bool | `true` | Enable readinessProbe |
150152
| admin-backend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container |
151153
| admin-backend.resources.limits.memory | string | `"4Gi"` | Maximum memory limit for the container |
152154
| 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
165167
| admin-frontend.ingress.enabled | bool | `false` | Enable Ingress resource |
166168
| admin-frontend.ingress.ingressClassName | string | `"nginx"` | Specify the Ingress class name |
167169
| admin-frontend.ingress.path | string | `"/"` | Path for the Ingress resource |
170+
| admin-frontend.livenessProbe.enabled | bool | `true` | Enable livenessProbe |
171+
| admin-frontend.livenessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe |
172+
| admin-frontend.livenessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path |
168173
| admin-frontend.metrics.enabled | bool | `false` | Enable metrics collection |
169174
| admin-frontend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics |
175+
| admin-frontend.readinessProbe.enabled | bool | `true` | Enable readinessProbe |
176+
| admin-frontend.readinessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe |
177+
| admin-frontend.readinessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path |
170178
| admin-frontend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container |
171179
| admin-frontend.resources.limits.memory | string | `"2Gi"` | Maximum memory limit for the container |
172180
| 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
193201
| chat-backend.image.registry | string | `"docker.io"` | Docker registry URL |
194202
| chat-backend.image.repository | string | `"epam/statgpt-chat-backend"` | Image repository name |
195203
| chat-backend.image.tag | string | `"0.1.0"` | Image tag or version |
204+
| chat-backend.livenessProbe.enabled | bool | `true` | Enable livenessProbe |
196205
| chat-backend.metrics.enabled | bool | `false` | Enable metrics collection |
197206
| chat-backend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics |
198207
| chat-backend.podSecurityContext.enabled | bool | `true` | Enable security context for the pod |
199208
| chat-backend.podSecurityContext.runAsUser | int | `5678` | User ID under which the pod runs |
209+
| chat-backend.readinessProbe.enabled | bool | `true` | Enable readinessProbe |
200210
| chat-backend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container |
201211
| chat-backend.resources.limits.memory | string | `"4Gi"` | Maximum memory limit for the container |
202212
| 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
252262
| portal-frontend.ingress.enabled | bool | `false` | Enable Ingress resource |
253263
| portal-frontend.ingress.ingressClassName | string | `"nginx"` | Specify the Ingress class name |
254264
| portal-frontend.ingress.path | string | `"/"` | Path for the Ingress resource |
265+
| portal-frontend.livenessProbe.enabled | bool | `true` | Enable livenessProbe |
266+
| portal-frontend.livenessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe |
267+
| portal-frontend.livenessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path |
255268
| portal-frontend.metrics.enabled | bool | `false` | Enable metrics collection |
256269
| portal-frontend.metrics.serviceMonitor.enabled | bool | `false` | Enable Prometheus ServiceMonitor for metrics |
270+
| portal-frontend.readinessProbe.enabled | bool | `true` | Enable readinessProbe |
271+
| portal-frontend.readinessProbe.httpGet | object | `{"path":"/api/health"}` | HTTP GET request configuration for liveness probe |
272+
| portal-frontend.readinessProbe.httpGet.path | string | `"/api/health"` | Health check endpoint path |
257273
| portal-frontend.resources.limits.cpu | string | `"1000m"` | Maximum CPU limit for the container |
258274
| portal-frontend.resources.limits.memory | string | `"4Gi"` | Maximum memory limit for the container |
259275
| portal-frontend.resources.requests.cpu | string | `"100m"` | Minimum CPU request for resource scheduling |
260276
| portal-frontend.resources.requests.memory | string | `"0.5Gi"` | Minimum memory request for resource scheduling |
277+
278+
--------------------------------------------------
279+
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`

charts/statgpt/README.md.gotmpl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,3 +79,6 @@ helm install my-release . --namespace my-namespace --values values.yaml --set ad
7979
```
8080

8181
{{ template "chart.valuesSection" . }}
82+
83+
--------------------------------------------------
84+
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`

charts/statgpt/values.yaml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,18 @@ chat-backend:
4343
# -- HTTP port for the application
4444
http: 5000
4545

46+
### Liveness Probes configuration ###
47+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
48+
livenessProbe:
49+
# -- Enable livenessProbe
50+
enabled: true
51+
52+
### Readiness Probes configuration ###
53+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
54+
readinessProbe:
55+
# -- Enable readinessProbe
56+
enabled: true
57+
4658
### Resource Management ###
4759
# ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
4860
resources:
@@ -164,6 +176,18 @@ admin-backend:
164176
# -- HTTP port for the application
165177
http: 8000
166178

179+
### Liveness Probes configuration ###
180+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
181+
livenessProbe:
182+
# -- Enable livenessProbe
183+
enabled: true
184+
185+
### Readiness Probes configuration ###
186+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
187+
readinessProbe:
188+
# -- Enable readinessProbe
189+
enabled: true
190+
167191
### Resource Management ###
168192
# ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
169193
resources:
@@ -284,6 +308,26 @@ admin-frontend:
284308
# -- HTTP port for the application
285309
http: 3000
286310

311+
### Liveness Probes configuration ###
312+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
313+
livenessProbe:
314+
# -- Enable livenessProbe
315+
enabled: true
316+
# -- HTTP GET request configuration for liveness probe
317+
httpGet:
318+
# -- Health check endpoint path
319+
path: /api/health
320+
321+
### Readiness Probes configuration ###
322+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
323+
readinessProbe:
324+
# -- Enable readinessProbe
325+
enabled: true
326+
# -- HTTP GET request configuration for liveness probe
327+
httpGet:
328+
# -- Health check endpoint path
329+
path: /api/health
330+
287331
### Resource Management ###
288332
# ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
289333
resources:
@@ -585,6 +629,26 @@ portal-frontend:
585629
# -- HTTP port for the application
586630
http: 3000
587631

632+
### Liveness Probes configuration ###
633+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
634+
livenessProbe:
635+
# -- Enable livenessProbe
636+
enabled: true
637+
# -- HTTP GET request configuration for liveness probe
638+
httpGet:
639+
# -- Health check endpoint path
640+
path: /api/health
641+
642+
### Readiness Probes configuration ###
643+
# ref: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-probes/#configure-probes
644+
readinessProbe:
645+
# -- Enable readinessProbe
646+
enabled: true
647+
# -- HTTP GET request configuration for liveness probe
648+
httpGet:
649+
# -- Health check endpoint path
650+
path: /api/health
651+
588652
### Resource Management ###
589653
# ref: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/
590654
resources:

0 commit comments

Comments
 (0)