feat(k3s): DNS-мост postgres/minio в namespace processing
This commit is contained in:
parent
4c4bb6f8a4
commit
934ccbbb73
26
k3s/manifests/processing/bridge-minio.yaml
Normal file
26
k3s/manifests/processing/bridge-minio.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# DNS-мост: имя `minio` в namespace processing → compose-контейнер minio
|
||||||
|
# (статический IP 172.28.0.11, прямой S3 на :9000). Service без селектора + Endpoints.
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: minio
|
||||||
|
namespace: processing
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: s3
|
||||||
|
port: 9000
|
||||||
|
targetPort: 9000
|
||||||
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Endpoints
|
||||||
|
metadata:
|
||||||
|
name: minio
|
||||||
|
namespace: processing
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 172.28.0.11
|
||||||
|
ports:
|
||||||
|
- name: s3
|
||||||
|
port: 9000
|
||||||
|
protocol: TCP
|
||||||
26
k3s/manifests/processing/bridge-postgres.yaml
Normal file
26
k3s/manifests/processing/bridge-postgres.yaml
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
# DNS-мост: имя `postgres` в namespace processing → compose-контейнер postgres
|
||||||
|
# (статический IP 172.28.0.10). Service без селектора + ручной Endpoints.
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: postgres
|
||||||
|
namespace: processing
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: pg
|
||||||
|
port: 5432
|
||||||
|
targetPort: 5432
|
||||||
|
protocol: TCP
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Endpoints
|
||||||
|
metadata:
|
||||||
|
name: postgres
|
||||||
|
namespace: processing
|
||||||
|
subsets:
|
||||||
|
- addresses:
|
||||||
|
- ip: 172.28.0.10
|
||||||
|
ports:
|
||||||
|
- name: pg
|
||||||
|
port: 5432
|
||||||
|
protocol: TCP
|
||||||
4
k3s/manifests/processing/namespace.yaml
Normal file
4
k3s/manifests/processing/namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: processing
|
||||||
Loading…
Reference in New Issue
Block a user