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

Commit 2c5f58f

Browse files
committed
healtchecks
1 parent e3daacb commit 2c5f58f

File tree

28 files changed

+378
-12
lines changed

28 files changed

+378
-12
lines changed

k8s/helm/apigwmm/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ spec:
3636
path: configuration.json
3737
containers:
3838
- name: {{ .Chart.Name }}
39+
{{ if .Values.probes -}}
40+
{{- if .Values.probes.liveness -}}
41+
livenessProbe:
42+
httpGet:
43+
path: {{ .Values.probes.liveness.path }}
44+
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
45+
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
46+
{{- end -}}
47+
{{- end -}}
48+
{{- if .Values.probes -}}
49+
{{- if .Values.probes.readiness }}
50+
readinessProbe:
51+
httpGet:
52+
path: {{ .Values.probes.readiness.path }}
53+
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
54+
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
55+
{{- end -}}
56+
{{- end }}
3957
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
4058
imagePullPolicy: {{ .Values.image.pullPolicy }}
4159
volumeMounts:

k8s/helm/apigwmm/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ env:
5050
values:
5151
- name: ASPNETCORE_ENVIRONMENT
5252
value: Development
53-
53+
probes:
54+
liveness:
55+
path: /liveness
56+
initialDelaySeconds: 10
57+
periodSeconds: 15
58+
readiness:
59+
path: /hc
60+
initialDelaySeconds: 90
61+
periodSeconds: 15

k8s/helm/apigwms/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ spec:
3636
path: configuration.json
3737
containers:
3838
- name: {{ .Chart.Name }}
39+
{{ if .Values.probes -}}
40+
{{- if .Values.probes.liveness -}}
41+
livenessProbe:
42+
httpGet:
43+
path: {{ .Values.probes.liveness.path }}
44+
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
45+
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
46+
{{- end -}}
47+
{{- end -}}
48+
{{- if .Values.probes -}}
49+
{{- if .Values.probes.readiness }}
50+
readinessProbe:
51+
httpGet:
52+
path: {{ .Values.probes.readiness.path }}
53+
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
54+
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
55+
{{- end -}}
56+
{{- end }}
3957
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
4058
imagePullPolicy: {{ .Values.image.pullPolicy }}
4159
volumeMounts:

k8s/helm/apigwms/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ env:
5050
values:
5151
- name: ASPNETCORE_ENVIRONMENT
5252
value: Development
53-
53+
probes:
54+
liveness:
55+
path: /liveness
56+
initialDelaySeconds: 10
57+
periodSeconds: 15
58+
readiness:
59+
path: /hc
60+
initialDelaySeconds: 90
61+
periodSeconds: 15

k8s/helm/apigwwm/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,24 @@ spec:
3636
path: configuration.json
3737
containers:
3838
- name: {{ .Chart.Name }}
39+
{{ if .Values.probes -}}
40+
{{- if .Values.probes.liveness -}}
41+
livenessProbe:
42+
httpGet:
43+
path: {{ .Values.probes.liveness.path }}
44+
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
45+
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
46+
{{- end -}}
47+
{{- end -}}
48+
{{- if .Values.probes -}}
49+
{{- if .Values.probes.readiness }}
50+
readinessProbe:
51+
httpGet:
52+
path: {{ .Values.probes.readiness.path }}
53+
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
54+
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
55+
{{- end -}}
56+
{{- end }}
3957
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
4058
imagePullPolicy: {{ .Values.image.pullPolicy }}
4159
volumeMounts:

k8s/helm/apigwwm/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ env:
5050
values:
5151
- name: ASPNETCORE_ENVIRONMENT
5252
value: Development
53-
53+
probes:
54+
liveness:
55+
path: /liveness
56+
initialDelaySeconds: 10
57+
periodSeconds: 15
58+
readiness:
59+
path: /hc
60+
initialDelaySeconds: 90
61+
periodSeconds: 15

k8s/helm/apigwws/templates/deployment.yaml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ kind: Deployment
66
metadata:
77
name: {{ template "apigwws.fullname" . }}
88
labels:
9-
ufo: {{ $cfgname}}
109
app: {{ template "apigwws.name" . }}
1110
chart: {{ template "apigwws.chart" . }}
1211
release: {{ .Release.Name }}
@@ -36,6 +35,24 @@ spec:
3635
path: configuration.json
3736
containers:
3837
- name: {{ .Chart.Name }}
38+
{{ if .Values.probes -}}
39+
{{- if .Values.probes.liveness -}}
40+
livenessProbe:
41+
httpGet:
42+
path: {{ .Values.probes.liveness.path }}
43+
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
44+
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
45+
{{- end -}}
46+
{{- end -}}
47+
{{- if .Values.probes -}}
48+
{{- if .Values.probes.readiness }}
49+
readinessProbe:
50+
httpGet:
51+
path: {{ .Values.probes.readiness.path }}
52+
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
53+
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
54+
{{- end -}}
55+
{{- end }}
3956
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
4057
imagePullPolicy: {{ .Values.image.pullPolicy }}
4158
volumeMounts:

k8s/helm/apigwws/values.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,12 @@ env:
5050
values:
5151
- name: ASPNETCORE_ENVIRONMENT
5252
value: Development
53-
53+
probes:
54+
liveness:
55+
path: /liveness
56+
initialDelaySeconds: 10
57+
periodSeconds: 15
58+
readiness:
59+
path: /hc
60+
initialDelaySeconds: 90
61+
periodSeconds: 15

k8s/helm/basket-api/templates/deployment.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,24 @@ spec:
2828
{{- end }}
2929
containers:
3030
- name: {{ .Chart.Name }}
31+
{{ if .Values.probes -}}
32+
{{- if .Values.probes.liveness -}}
33+
livenessProbe:
34+
httpGet:
35+
path: {{ .Values.probes.liveness.path }}
36+
initialDelaySeconds: {{ .Values.probes.liveness.initialDelaySeconds }}
37+
periodSeconds: {{ .Values.probes.liveness.periodSeconds }}
38+
{{- end -}}
39+
{{- end -}}
40+
{{- if .Values.probes -}}
41+
{{- if .Values.probes.readiness }}
42+
readinessProbe:
43+
httpGet:
44+
path: {{ .Values.probes.readiness.path }}
45+
initialDelaySeconds: {{ .Values.probes.readiness.initialDelaySeconds }}
46+
periodSeconds: {{ .Values.probes.readiness.periodSeconds }}
47+
{{- end -}}
48+
{{- end }}
3149
image: "{{ template "fqdn-image" . }}:{{ .Values.image.tag }}"
3250
imagePullPolicy: {{ .Values.image.pullPolicy }}
3351
env:

k8s/helm/basket-api/values.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,12 @@ env:
4141
values:
4242
- name: OrchestratorType
4343
value: 'K8S'
44+
probes:
45+
liveness:
46+
path: /liveness
47+
initialDelaySeconds: 10
48+
periodSeconds: 15
49+
readiness:
50+
path: /hc
51+
initialDelaySeconds: 90
52+
periodSeconds: 15

0 commit comments

Comments
 (0)