Skip to content

Conversation

@asafchen-dig
Copy link

This PR fixes the database connectivity issues in the /api/clinic-feedback/count endpoint by:

  1. Setting StatefulSet replicas to 1 to ensure database pods are running
  2. Updating the database connection configuration to use the correct service name

These changes resolve the HTTP 500 errors by ensuring:

  • Database pods are running (StatefulSet replicas > 0)
  • Application can properly connect to the database using the correct service name

Testing:

  1. Verify GET /api/clinic-feedback/count returns HTTP 200
  2. Confirm petclinic service can connect to petclinic-flaskdb:27017
  3. Check application logs for no connection errors
  4. Verify database pods are running

Fixes #[Issue number]

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.

2 participants