k8s/manifests/03-services/svc-postrges.yaml
Simple_Not ad10eb371b
All checks were successful
continuous-integration/drone/push Build is passing
add pg
2023-12-18 01:18:16 +10:00

31 lines
500 B
YAML

---
apiVersion: v1
kind: Service
metadata:
namespace: pg
name: postgres
labels:
app: postgres
spec:
externalIPs:
- 10.0.4.12
selector:
app: postgres
ports:
- protocol: TCP
name: postgres
port: 5432
#nodePort: 30432
#type: NodePort
# ---
# apiVersion: v1
# kind: Endpoints
# metadata:
# namespace: pg
# name: postgres #<------ Should match the name of Service
# subsets:
# - addresses:
# - ip: 10.0.4.12
# ports:
# - port: 5432