# Container fragment only; not a deployed configuration.
# Existing application environment supplies port/context and health headers.
# The current scripts use localhost and a 3-second curl budget.
# 5 seconds is an illustrative outer timeout with script/exec margin.
startupProbe:
  exec:
    command: [bash, -c, /scratch/scripts/readiness-check.sh]
  periodSeconds: 10       # Illustrative; measure probe cost and boot behavior.
  timeoutSeconds: 5
  failureThreshold: 30    # Approx. 300-second nominal budget, not an exact deadline.
  successThreshold: 1
readinessProbe:
  exec:
    command: [bash, -c, /scratch/scripts/readiness-check.sh]
  periodSeconds: 10       # Illustrative withdrawal/recovery sampling interval.
  timeoutSeconds: 5
  failureThreshold: 3     # Illustrative consecutive failures before withdrawal.
  successThreshold: 2    # Illustrative consecutive successes before restoration.
livenessProbe:
  exec:
    command: [bash, -c, /scratch/scripts/liveness-check.sh]
  periodSeconds: 20       # Illustrative; choose with the local fatal predicate.
  timeoutSeconds: 5
  failureThreshold: 3
  successThreshold: 1
