Skip to content

Commit cb53cae

Browse files
committed
Add readiness and liveliness probes
Signed-off-by: JeffMboya <[email protected]> Fix adapter-coap and ui ports Signed-off-by: JeffMboya <[email protected]> Fix replica count Signed-off-by: JeffMboya <[email protected]> Fix CI Signed-off-by: JeffMboya <[email protected]> Fix CI Signed-off-by: JeffMboya <[email protected]>
1 parent b7718b9 commit cb53cae

13 files changed

+808
-665
lines changed

charts/supermq/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ name: Supermq
66
description: Event-driven Infrastructure for Modern Cloud
77
icon: https://avatars1.githubusercontent.com/u/13207490
88
type: application
9-
version: 0.16.3
9+
version: 0.16.4
1010
appVersion: "0.16.0"
1111
home: https://abstractmachines.fr/supermq.html
1212
sources:

charts/supermq/README.md

+587-664
Large diffs are not rendered by default.

charts/supermq/templates/adapter_coap-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,26 @@ spec:
6868
- containerPort: {{ .Values.adapter_coap.port }}
6969
name: "tcp-{{ .Values.adapter_coap.port }}"
7070
protocol: TCP
71+
livenessProbe:
72+
httpGet:
73+
path: /health
74+
port: {{ .Values.adapter_coap.port }}
75+
scheme: HTTP
76+
initialDelaySeconds: 90
77+
periodSeconds: 10
78+
failureThreshold: 3
79+
successThreshold: 1
80+
timeoutSeconds: 5
81+
readinessProbe:
82+
httpGet:
83+
path: /health
84+
port: {{ .Values.adapter_coap.port }}
85+
scheme: HTTP
86+
initialDelaySeconds: 90
87+
periodSeconds: 10
88+
failureThreshold: 3
89+
successThreshold: 1
90+
timeoutSeconds: 5
7191
stdin: true
7292
tty: true
7393
{{- with .Values.adapter_coap.nodeSelector }}

charts/supermq/templates/adapter_http-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,26 @@ spec:
6363
ports:
6464
- containerPort: {{ .Values.adapter_http.httpPort }}
6565
protocol: TCP
66+
livenessProbe:
67+
httpGet:
68+
path: /health
69+
port: {{ .Values.adapter_http.httpPort }}
70+
scheme: HTTP
71+
initialDelaySeconds: 90
72+
periodSeconds: 10
73+
failureThreshold: 3
74+
successThreshold: 1
75+
timeoutSeconds: 5
76+
readinessProbe:
77+
httpGet:
78+
path: /health
79+
port: {{ .Values.adapter_http.httpPort }}
80+
scheme: HTTP
81+
initialDelaySeconds: 90
82+
periodSeconds: 10
83+
failureThreshold: 3
84+
successThreshold: 1
85+
timeoutSeconds: 5
6686
{{- with .Values.adapter_http.nodeSelector }}
6787
nodeSelector:
6888
{{- toYaml . | nindent 8 }}

charts/supermq/templates/auth-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,26 @@ spec:
101101
protocol: TCP
102102
- containerPort: {{ .Values.auth.grpcPort }}
103103
protocol: TCP
104+
livenessProbe:
105+
httpGet:
106+
path: /health
107+
port: {{ .Values.auth.httpPort }}
108+
scheme: HTTP
109+
initialDelaySeconds: 90
110+
periodSeconds: 10
111+
failureThreshold: 3
112+
successThreshold: 1
113+
timeoutSeconds: 5
114+
readinessProbe:
115+
httpGet:
116+
path: /health
117+
port: {{ .Values.auth.httpPort }}
118+
scheme: HTTP
119+
initialDelaySeconds: 90
120+
periodSeconds: 10
121+
failureThreshold: 3
122+
successThreshold: 1
123+
timeoutSeconds: 5
104124
volumeMounts:
105125
- name: auth-data
106126
mountPath: /supermq-data

charts/supermq/templates/certs-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,24 @@ spec:
100100
ports:
101101
- containerPort: {{ .Values.certs.httpPort }}
102102
protocol: TCP
103+
livenessProbe:
104+
httpGet:
105+
path: /health
106+
port: {{ .Values.certs.httpPort }}
107+
scheme: HTTP
108+
initialDelaySeconds: 90
109+
periodSeconds: 10
110+
failureThreshold: 3
111+
successThreshold: 1
112+
timeoutSeconds: 5
113+
readinessProbe:
114+
httpGet:
115+
path: /health
116+
port: {{ .Values.certs.httpPort }}
117+
scheme: HTTP
118+
initialDelaySeconds: 90
119+
periodSeconds: 10
120+
failureThreshold: 3
121+
successThreshold: 1
122+
timeoutSeconds: 5
103123
{{- end }}

charts/supermq/templates/channels-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,26 @@ spec:
111111
protocol: TCP
112112
- containerPort: {{ .Values.channels.grpcPort }}
113113
protocol: TCP
114+
livenessProbe:
115+
httpGet:
116+
path: /health
117+
port: {{ .Values.channels.httpPort }}
118+
scheme: HTTP
119+
initialDelaySeconds: 90
120+
periodSeconds: 10
121+
failureThreshold: 3
122+
successThreshold: 1
123+
timeoutSeconds: 5
124+
readinessProbe:
125+
httpGet:
126+
path: /health
127+
port: {{ .Values.channels.httpPort }}
128+
scheme: HTTP
129+
initialDelaySeconds: 90
130+
periodSeconds: 10
131+
failureThreshold: 3
132+
successThreshold: 1
133+
timeoutSeconds: 5
114134
volumeMounts:
115135
- name: spicedb-schema
116136
mountPath: /schema.zed

charts/supermq/templates/clients-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,26 @@ spec:
123123
protocol: TCP
124124
- containerPort: {{ .Values.auth.httpPort }}
125125
protocol: TCP
126+
livenessProbe:
127+
httpGet:
128+
path: /health
129+
port: {{ .Values.clients.httpPort }}
130+
scheme: HTTP
131+
initialDelaySeconds: 90
132+
periodSeconds: 10
133+
failureThreshold: 3
134+
successThreshold: 1
135+
timeoutSeconds: 5
136+
readinessProbe:
137+
httpGet:
138+
path: /health
139+
port: {{ .Values.clients.httpPort }}
140+
scheme: HTTP
141+
initialDelaySeconds: 90
142+
periodSeconds: 10
143+
failureThreshold: 3
144+
successThreshold: 1
145+
timeoutSeconds: 5
126146
volumeMounts:
127147
- name: spicedb-schema
128148
mountPath: /schema.zed

charts/supermq/templates/domains-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,26 @@ spec:
116116
protocol: TCP
117117
- containerPort: {{ .Values.domains.grpcPort }}
118118
protocol: TCP
119+
livenessProbe:
120+
httpGet:
121+
path: /health
122+
port: {{ .Values.domains.httpPort }}
123+
scheme: HTTP
124+
initialDelaySeconds: 90
125+
periodSeconds: 10
126+
failureThreshold: 3
127+
successThreshold: 1
128+
timeoutSeconds: 5
129+
readinessProbe:
130+
httpGet:
131+
path: /health
132+
port: {{ .Values.domains.httpPort }}
133+
scheme: HTTP
134+
initialDelaySeconds: 90
135+
periodSeconds: 10
136+
failureThreshold: 3
137+
successThreshold: 1
138+
timeoutSeconds: 5
119139
volumes:
120140
- name: spicedb-schema-zed
121141
configMap:

charts/supermq/templates/groups-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,26 @@ spec:
103103
protocol: TCP
104104
- containerPort: {{ .Values.groups.grpcPort }}
105105
protocol: TCP
106+
livenessProbe:
107+
httpGet:
108+
path: /health
109+
port: {{ .Values.groups.httpPort }}
110+
scheme: HTTP
111+
initialDelaySeconds: 90
112+
periodSeconds: 10
113+
failureThreshold: 3
114+
successThreshold: 1
115+
timeoutSeconds: 5
116+
readinessProbe:
117+
httpGet:
118+
path: /health
119+
port: {{ .Values.groups.httpPort }}
120+
scheme: HTTP
121+
initialDelaySeconds: 90
122+
periodSeconds: 10
123+
failureThreshold: 3
124+
successThreshold: 1
125+
timeoutSeconds: 5
106126
volumeMounts:
107127
- mountPath: /schema.zed
108128
name: spicedb-schema-zed

charts/supermq/templates/journal-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,26 @@ spec:
8989
ports:
9090
- containerPort: {{ .Values.journal.httpPort }}
9191
protocol: TCP
92+
livenessProbe:
93+
httpGet:
94+
path: /health
95+
port: {{ .Values.journal.httpPort }}
96+
scheme: HTTP
97+
initialDelaySeconds: 90
98+
periodSeconds: 10
99+
failureThreshold: 3
100+
successThreshold: 1
101+
timeoutSeconds: 5
102+
readinessProbe:
103+
httpGet:
104+
path: /health
105+
port: {{ .Values.journal.httpPort }}
106+
scheme: HTTP
107+
initialDelaySeconds: 90
108+
periodSeconds: 10
109+
failureThreshold: 3
110+
successThreshold: 1
111+
timeoutSeconds: 5
92112
{{- with .Values.journal.nodeSelector }}
93113
nodeSelector:
94114
{{- toYaml . | nindent 8 }}

charts/supermq/templates/users-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,26 @@ spec:
126126
ports:
127127
- containerPort: {{ .Values.users.httpPort }}
128128
protocol: TCP
129+
livenessProbe:
130+
httpGet:
131+
path: /health
132+
port: {{ .Values.users.httpPort }}
133+
scheme: HTTP
134+
initialDelaySeconds: 90
135+
periodSeconds: 10
136+
failureThreshold: 3
137+
successThreshold: 1
138+
timeoutSeconds: 5
139+
readinessProbe:
140+
httpGet:
141+
path: /health
142+
port: {{ .Values.users.httpPort }}
143+
scheme: HTTP
144+
initialDelaySeconds: 90
145+
periodSeconds: 10
146+
failureThreshold: 3
147+
successThreshold: 1
148+
timeoutSeconds: 5
129149
volumeMounts:
130150
- mountPath: /email.tmpl
131151
name: users-config

charts/supermq/templates/ws-deployment.yaml

+20
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,26 @@ spec:
6363
ports:
6464
- containerPort: {{ .Values.adapter_ws.httpPort | int }}
6565
protocol: TCP
66+
livenessProbe:
67+
httpGet:
68+
path: /health
69+
port: {{ .Values.adapter_ws.httpPort }}
70+
scheme: HTTP
71+
initialDelaySeconds: 90
72+
periodSeconds: 10
73+
failureThreshold: 3
74+
successThreshold: 1
75+
timeoutSeconds: 5
76+
readinessProbe:
77+
httpGet:
78+
path: /health
79+
port: {{ .Values.adapter_ws.httpPort }}
80+
scheme: HTTP
81+
initialDelaySeconds: 90
82+
periodSeconds: 10
83+
failureThreshold: 3
84+
successThreshold: 1
85+
timeoutSeconds: 5
6686
{{- with .Values.domains.nodeSelector }}
6787
nodeSelector:
6888
{{- toYaml . | nindent 6 }}

0 commit comments

Comments
 (0)