apiVersion: v1
kind: Service
metadata:
  name: python-guestbook-db
  labels:
    app: python-guestbook
    tier: db
spec:
  type: ClusterIP
  ports:
    - port: 5432
      targetPort: 5432
  selector:
    app: python-guestbook
    tier: db
