apiVersion: v1
kind: Service
metadata:
  name: redis-slave
  labels:
    app: redis
    role: slave
spec:
  # if your cluster supports it, uncomment the following to automatically create
  # an external load-balanced IP for the frontend service.
  # type: NodePort
  ports:
    # the port that this service should serve on
  - port: 6379
  selector:
    app: redis
    role: slave