20 lines
494 B
YAML
20 lines
494 B
YAML
---
|
|
# yaml-language-server: $schema=https://kubernetesjsonschema.dev/v1.18.1-standalone-strict/service-v1.json
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: postgres-lb
|
|
annotations:
|
|
external-dns.alpha.kubernetes.io/hostname: postgres.${SECRET_INTERNAL_DOMAIN}
|
|
io.cilium/lb-ipam-ips: "${SVC_POSTGRES_ADDR}"
|
|
spec:
|
|
type: LoadBalancer
|
|
ports:
|
|
- name: postgres
|
|
port: 5432
|
|
protocol: TCP
|
|
targetPort: 5432
|
|
selector:
|
|
cnpg.io/cluster: postgres
|
|
role: primary
|