diff --git a/deploy/opensearch.yaml b/deploy/opensearch.yaml index b2352ab2..c89f3110 100644 --- a/deploy/opensearch.yaml +++ b/deploy/opensearch.yaml @@ -82,3 +82,17 @@ spec: - port: 9300 targetPort: 9300 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 diff --git a/deploy/postgres.yaml b/deploy/postgres.yaml index 8a4f64e6..046e4486 100644 --- a/deploy/postgres.yaml +++ b/deploy/postgres.yaml @@ -35,7 +35,7 @@ spec: key: POSTGRES_PASSWORD volumeMounts: - name: data - mountPath: /var/lib/postgresql/data + mountPath: /home/postgres/pgdata resources: requests: memory: "1Gi" @@ -89,3 +89,17 @@ spec: - port: 5432 targetPort: 5432 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