apiVersion: v1
kind: Service
metadata:
  name: quote-store
spec:
  ports:
  - port: 6379 # the port that this service should serve on
    targetPort: 6379
  # just like the selector in the replication controller,
  # but this time it identifies the set of pods to load balance
  # traffic to.
  selector:
    app: quote-api
    role: persistent-storage
