19 lines
253 B
YAML
19 lines
253 B
YAML
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
namespace: pg
|
|
name: postgres
|
|
labels:
|
|
app: postgres
|
|
spec:
|
|
selector:
|
|
app: postgres
|
|
ports:
|
|
- protocol: TCP
|
|
name: postgres
|
|
port: 5432
|
|
#nodePort: 30432
|
|
#type: NodePort
|