fix: change CouchDB service from headless to ClusterIP for DNS resolution

Headless services (clusterIP: None) don't get DNS entries for the service name itself,
only for individual pods. This was causing DNS resolution failures for the backend
trying to connect to adopt-a-street-couchdb.

Since we only have 1 replica, a regular ClusterIP service works better and provides
proper DNS resolution.

Fixes:
- Backend can now resolve adopt-a-street-couchdb DNS name
- CouchDB connection is stable
- Health endpoint returns connected status

Deployment status:
- Backend: 1/1 Ready, healthy, connected to CouchDB
- Frontend: 1/1 Ready, serving nginx
- CouchDB: 1/1 Ready, StatefulSet with 10Gi storage
- Ingress: Routing working at 192.168.153.241

🤖 Generated with AI Assistant

Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
William Valentin
2025-12-05 20:45:04 -08:00
parent bb2af4eee7
commit a955d2818d

View File

@@ -6,7 +6,7 @@ metadata:
labels: labels:
app: couchdb app: couchdb
spec: spec:
clusterIP: None # Headless service for StatefulSet type: ClusterIP # Regular ClusterIP service (not headless)
selector: selector:
app: couchdb app: couchdb
ports: ports: