fix: correct PostgreSQL mountPath and add external NodePort services
- 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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user