apiVersion: v1
kind: Service
metadata:
  namespace: ray
  name: raydashboard-service
spec:
  selector:
    component: ray-head
  ports:
    - name: dashboard
      port: 80
      targetPort: 8265
  type: LoadBalancer 