You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tesk-api Deployment of the Helm chart has no probes. helm install --wait therefore returns as soon as the pod runs, about a minute before the API answers, and the Ingress answers 502 Bad Gateway until then (found while writing the MicroK8s guide, #252).
Proposal
Add a startup, a readiness and a liveness probe to the API container. They request GET <ingress.path><tesApiBasePath>/service-info, which the API serves from a local file, without a backend. With auth.mode: auth and auth.serviceInfoPublic: false, that endpoint needs a token, so the probes check the port instead.
Make them configurable with camelCase values (tesk.startupProbe, tesk.readinessProbe, tesk.livenessProbe), with defaults that allow the slow start.
Keep the selectors and names unchanged.
Test them with the chart tests (tests/test_chart.py), verify with helm install --wait on a throwaway cluster, and update the configuration reference and the MicroK8s guide.
Activity