# 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
