refactor: remove hardcoded namespaces from Kubernetes manifests
- Remove namespace: adopt-a-street from all metadata sections - Update CouchDB NODENAME to use namespace-agnostic format - Make all manifests deployable to any namespace - Maintain service names and selectors for functionality - All manifests validated with kubectl dry-run Now manifests can be deployed to any namespace using: kubectl apply -n <namespace> -f deploy/k8s/ 🤖 Generated with [AI Assistant] Co-Authored-By: AI Assistant <noreply@ai-assistant.com>
This commit is contained in:
@@ -2,7 +2,6 @@ apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: adopt-a-street-couchdb
|
||||
namespace: adopt-a-street
|
||||
labels:
|
||||
app: couchdb
|
||||
spec:
|
||||
@@ -23,7 +22,6 @@ apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: adopt-a-street-couchdb
|
||||
namespace: adopt-a-street
|
||||
spec:
|
||||
serviceName: adopt-a-street-couchdb
|
||||
replicas: 1
|
||||
@@ -70,7 +68,7 @@ spec:
|
||||
name: adopt-a-street-secrets
|
||||
key: COUCHDB_SECRET
|
||||
- name: NODENAME
|
||||
value: couchdb@0.adopt-a-street-couchdb.adopt-a-street
|
||||
value: couchdb@0.adopt-a-street-couchdb
|
||||
- name: ERL_FLAGS
|
||||
value: "+K true +A 4"
|
||||
- name: COUCHDB_SINGLE_NODE_ENABLED
|
||||
|
||||
Reference in New Issue
Block a user