apiVersion: v1
kind: Service
metadata:
  # name is the hostname the guestbook app tries to find the redis
  name: redis-master
  labels:
    app: redis-service
spec:
  type: ClusterIP
  ports:
    - port: 6379
      targetPort: 6379
  selector:
    app: guestbook-app
    name: redis
    tier: backend
