#!/bin/sh # Docker/k8s health probe. Returns 0 if healthy. set -e HOST="${TAU_RAG_HOST:-127.0.0.1}" PORT="${TAU_RAG_PORT:-8000}" # Note: /v1/readiness does a deeper check than /v1/health ENDPOINT="${TAU_RAG_HEALTH_ENDPOINT:-/v1/readiness}" # curl exits non-zero on non-2xx or connection failure curl --fail --silent --max-time 3 \ "http://${HOST}:${PORT}${ENDPOINT}" > /dev/null