fix: correct PostgreSQL mountPath and add external NodePort services
All checks were successful
CI / build (pull_request) Successful in 1m9s
CI / docker (pull_request) Has been skipped
CI / deploy (pull_request) Has been skipped

- Fix postgres.yaml mountPath to /home/postgres/pgdata matching timescaledb-ha PGDATA
- Add NodePort services for external access: PostgreSQL (30432), OpenSearch (30920)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
hsiegeln
2026-03-17 01:00:20 +01:00
parent c316e80d7f
commit c346babe33
2 changed files with 29 additions and 1 deletions

View File

@@ -82,3 +82,17 @@ spec:
- port: 9300 - port: 9300
targetPort: 9300 targetPort: 9300
name: transport name: transport
---
apiVersion: v1
kind: Service
metadata:
name: opensearch-external
namespace: cameleer
spec:
type: NodePort
selector:
app: opensearch
ports:
- port: 9200
targetPort: 9200
nodePort: 30920

View File

@@ -35,7 +35,7 @@ spec:
key: POSTGRES_PASSWORD key: POSTGRES_PASSWORD
volumeMounts: volumeMounts:
- name: data - name: data
mountPath: /var/lib/postgresql/data mountPath: /home/postgres/pgdata
resources: resources:
requests: requests:
memory: "1Gi" memory: "1Gi"
@@ -89,3 +89,17 @@ spec:
- port: 5432 - port: 5432
targetPort: 5432 targetPort: 5432
name: postgres name: postgres
---
apiVersion: v1
kind: Service
metadata:
name: postgres-external
namespace: cameleer
spec:
type: NodePort
selector:
app: postgres
ports:
- port: 5432
targetPort: 5432
nodePort: 30432