Skip to content

Commit c8aa87e

Browse files
committed
Add API Readiness Probe
Now server bring up is syncronous, and we pre populate caches, add a readiness probe to prevent too many API errors during upgrade. Its still not seamless according to my testing, but a lot better!
1 parent 35b25a9 commit c8aa87e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

charts/region/templates/api/deployment.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ spec:
3535
containerPort: 6060
3636
resources:
3737
{{- .Values.server.resources | toYaml | nindent 10 }}
38+
readinessProbe:
39+
# This should be large enough to preheat caches.
40+
initialDelaySeconds: 10
41+
httpGet:
42+
path: /.well-known/openid-protected-resource
43+
port: 6080
3844
securityContext:
3945
readOnlyRootFilesystem: true
4046
serviceAccountName: {{ .Release.Name }}-server

0 commit comments

Comments
 (0)