Fix: Set flaskdb StatefulSet replicas to 1#115
Open
asafchen-dig wants to merge 2 commits intomainfrom
Open
Conversation
Author
|
The StatefulSet configuration update looks good, but we also need to update the service configuration to match the StatefulSet labels and ensure proper protocol configuration. Here's the required service manifest: apiVersion: v1
kind: Service
metadata:
name: petclinic-flaskdb
namespace: pet-agentic-dev
labels:
app.kubernetes.io/component: petclinic-flaskdb
spec:
selector:
app.kubernetes.io/component: petclinic-flaskdb
ports:
- name: mongodb
protocol: TCP
port: 27017
targetPort: 27017
type: ClusterIPThis service configuration:
Please add this service configuration to complete the fix for the connectivity issue. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes the connectivity issue between petclinic service and petclinic-flaskdb by setting the StatefulSet replica count to 1.
Issue: ff76fc16-81bc-11f0-8462-168ae57aaddf
Change: Updated flaskdb-statefulset.yaml to set replicas: 1
This minimal change will restore service functionality for the /api/clinic-feedback/count endpoint.