Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Commit c0e2ad9

Browse files
author
David Tesar
authored
Add API health check probes (#61)
1 parent db572f1 commit c0e2ad9

4 files changed

Lines changed: 48 additions & 0 deletions

File tree

apis/poi/helm/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ spec:
2020
- image: "{{ .Values.repository.image }}:{{ .Values.repository.tag }}"
2121
imagePullPolicy: {{ .Values.repository.pullPolicy }}
2222
name: {{ .Values.image.name }}
23+
# livenessProbe:
24+
# httpGet:
25+
# path: /api/healthcheck/poi
26+
# port: {{ .Values.image.containerPort }}
27+
# initialDelaySeconds: 10
28+
# periodSeconds: 30
29+
# readinessProbe:
30+
# httpGet:
31+
# path: /api/healthcheck/poi
32+
# port: {{ .Values.image.containerPort }}
33+
# initialDelaySeconds: 5
34+
# periodSeconds: 5
2335
ports:
2436
- containerPort: {{ .Values.image.containerPort }}
2537
name: http

apis/trips/helm/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ spec:
2020
- image: "{{ .Values.repository.image }}:{{ .Values.repository.tag }}"
2121
imagePullPolicy: {{ .Values.repository.pullPolicy }}
2222
name: {{ .Values.image.name }}
23+
# livenessProbe:
24+
# httpGet:
25+
# path: /api/healthcheck/trips
26+
# port: {{ .Values.image.containerPort }}
27+
# initialDelaySeconds: 10
28+
# periodSeconds: 30
29+
# readinessProbe:
30+
# httpGet:
31+
# path: /api/healthcheck/trips
32+
# port: {{ .Values.image.containerPort }}
33+
# initialDelaySeconds: 5
34+
# periodSeconds: 5
2335
ports:
2436
- containerPort: {{ .Values.image.containerPort }}
2537
name: http

apis/user-java/helm/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,18 @@ spec:
1818
- image: "{{ .Values.repository.image }}:{{ .Values.repository.tag }}"
1919
imagePullPolicy: {{ .Values.repository.pullPolicy }}
2020
name: {{ .Values.image.name }}
21+
# livenessProbe:
22+
# httpGet:
23+
# path: /api/healthcheck/user-java
24+
# port: {{ .Values.image.containerPort }}
25+
# initialDelaySeconds: 10
26+
# periodSeconds: 30
27+
# readinessProbe:
28+
# httpGet:
29+
# path: /api/healthcheck/user-java
30+
# port: {{ .Values.image.containerPort }}
31+
# initialDelaySeconds: 5
32+
# periodSeconds: 5
2133
ports:
2234
- containerPort: {{ .Values.image.containerPort }}
2335
name: http

apis/userprofile/helm/templates/deployment.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ spec:
2020
- image: "{{ .Values.repository.image }}:{{ .Values.repository.tag }}"
2121
imagePullPolicy: {{ .Values.repository.pullPolicy }}
2222
name: {{ .Values.image.name }}
23+
# livenessProbe:
24+
# httpGet:
25+
# path: /api/healthcheck/user
26+
# port: {{ .Values.image.containerPort }}
27+
# initialDelaySeconds: 10
28+
# periodSeconds: 30
29+
# readinessProbe:
30+
# httpGet:
31+
# path: /api/healthcheck/user
32+
# port: {{ .Values.image.containerPort }}
33+
# initialDelaySeconds: 5
34+
# periodSeconds: 5
2335
ports:
2436
- containerPort: {{ .Values.image.containerPort }}
2537
name: http

0 commit comments

Comments
 (0)