Skip to content

Conversation

asafchen-dig
Copy link

This PR addresses the connection issues with the petclinic-flaskdb service by updating the StatefulSet configuration with proper settings:

  1. Set replicas to 1 to ensure the database service is running
  2. Added resource limits and requests to prevent resource contention:
    • Requests: 256Mi memory, 100m CPU
    • Limits: 512Mi memory, 200m CPU
  3. Implemented health checks:
    • Readiness probe: HTTP GET /health on port 5000
    • Liveness probe: HTTP GET /health on port 5000

These changes will ensure:

  • The database service is always running with one replica
  • Resource usage is properly managed
  • Kubernetes can properly monitor container health

Fixes connection issues affecting the /api/clinic-feedback/count endpoint.
Related error: ff76e9d8-81bc-11f0-8462-168ae57aaddf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant