cloudnet-compose/k8s-specifications/db-service.yaml

17 lines
209 B
YAML
Raw Permalink Normal View History

2018-03-05 12:57:48 +01:00
apiVersion: v1
kind: Service
metadata:
labels:
app: db
2018-03-05 12:57:48 +01:00
name: db
namespace: vote
2018-03-05 12:57:48 +01:00
spec:
type: ClusterIP
ports:
- name: "db-service"
port: 5432
2018-03-05 12:57:48 +01:00
targetPort: 5432
selector:
app: db