How do you tune probes for a slow-starting JVM app?
IntermediateProductionReliability & Rollouts
Answer
Use a startupProbe with a generous budget (failureThreshold: 30, periodSeconds: 10 gives 5 minutes) so liveness does not kill it mid-boot, then a tight liveness and readiness. Also give enough CPU request because JVM startup is CPU-bound, and consider CDS/AOT or lower JVM heap flags (-XX:MaxRAMPercentage).
More on Reliability & Rollouts
What are the must-have settings for a production Deployment?BeginnerWhy use image digests or immutable tags instead of `latest`?BeginnerWhat does a PodDisruptionBudget protect and how do you size it?BeginnerHow do you set graceful shutdown right?BeginnerWhy do rollouts sometimes cause brief 502/503 errors?BeginnerHow many replicas should you run and how do you spread them?Beginner