Files
homelab-infra/apps/shared-postgresql/shared-postgresql-service.yaml
T
panxiao81 88a02ababa
lint / yaml (push) Has been cancelled
lint / ansible (push) Has been cancelled
lint / terraform (push) Has been cancelled
Establish clean homelab infrastructure baseline
Reorganize the brownfield repository, remove retired and generated artifacts, harden ignore rules, and record the GitOps/IaC redesign.
2026-09-09 16:47:20 +00:00

32 lines
608 B
YAML

apiVersion: v1
kind: Service
metadata:
name: shared-postgresql
namespace: shared-db
spec:
type: ClusterIP
selector:
cnpg.io/cluster: shared-postgresql
cnpg.io/instanceRole: primary
ports:
- name: postgres
port: 5432
targetPort: 5432
---
apiVersion: v1
kind: Service
metadata:
name: shared-postgresql-tailscale
namespace: shared-db
spec:
type: LoadBalancer
loadBalancerClass: tailscale
selector:
cnpg.io/cluster: shared-postgresql
cnpg.io/instanceRole: primary
ports:
- name: tcp-postgresql
port: 5432
protocol: TCP
targetPort: 5432