Files
Kubernetes/PostgreSQL/postgres_lb_service.yaml
T

17 lines
315 B
YAML

apiVersion: v1
kind: Service
metadata:
name: postgres-service
namespace: database
labels:
io.cilium/static-ip: "true"
annotations:
lbipam.cilium.io/ips: "10.2.0.122"
spec:
type: LoadBalancer
selector:
app: postgres-hetzner
ports:
- protocol: TCP
port: 5432
targetPort: 5432