fix: correct route name and health check endpoints in deployment

- Fix route name mismatch: script was looking for 'resource-governance' but route is named 'resource-governance-route'
- Fix health check endpoints: use /health instead of /api/v1/health for liveness/readiness probes
- Add better error handling and route verification in deploy script
- Add sleep delay to ensure route is ready before URL extraction
- Show available routes if expected route is not found
This commit is contained in:
2025-10-03 06:37:35 -03:00
parent c2338eefae
commit c81ba36b26
2 changed files with 15 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ spec:
protocol: TCP
livenessProbe:
httpGet:
path: /api/v1/health
path: /health
port: 8080
initialDelaySeconds: 30
periodSeconds: 10
@@ -46,7 +46,7 @@ spec:
failureThreshold: 3
readinessProbe:
httpGet:
path: /api/v1/health
path: /health
port: 8080
initialDelaySeconds: 15 # Aguarda mais tempo para inicializar
periodSeconds: 5