Grist CrashLoopBackOff Fix
Symptom
Root Cause
Both pods died repeatedly with:
Grist connects to the OIDC provider (Keycloak) at https://id.192.168.0.215.sslip.io/realms/mijnbureau over HTTPS.
The demo Kind cluster uses self-signed TLS certificates, which Node.js rejects by default (NODE_TLS_REJECT_UNAUTHORIZED=1).
Fix
Set NODE_TLS_REJECT_UNAUTHORIZED=0 on the Grist container to allow self-signed certificates.
Files changed
helmfile/apps/grist/values.yaml.gotmpl— AddedNODE_TLS_REJECT_UNAUTHORIZED=0toextraEnvVarsso the fix survives helmfile redeploy.Live patch — Applied directly to the deployment:
kubectl patch deployment grist -p '{"spec":{"template":{"spec":{"containers":[{"name":"grist","env":[{"name":"NODE_TLS_REJECT_UNAUTHORIZED","value":"0"}]}]}}}}'
Verification
After the fix, both pods started successfully with 0 restarts:
Note
This is acceptable for the demo/dev environment. For production, the internal PKI should use a trusted CA so this env var can be removed.