apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: spark-master-ingress
  labels:
    app.kubernetes.io/name: spark-cluster
    app.kubernetes.io/part-of: nowchess
spec:
  ingressClassName: nginx
  rules:
    - host: spark.nowchess.janis-eccarius.de
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: spark-master
                port:
                  number: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: spark-history-ingress
  labels:
    app.kubernetes.io/name: spark-cluster
    app.kubernetes.io/part-of: nowchess
spec:
  ingressClassName: nginx
  rules:
    - host: spark-history.nowchess.janis-eccarius.de
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: spark-history-server-svc
                port:
                  number: 18080
