apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: hornet-ingress
  labels:
    source: one-click-tangle
  annotations:
    # 'gce' for GKE, 'alb' for 'EKS'
    kubernetes.io/ingress.class: nginx
# Uncomment for AWS EKS: alb.ingress.kubernetes.io/subnets: subnet-aa1649cc, subnet-a656cffc, subnet-fdf3dcb5
# Uncomment for AWS EKS: alb.ingress.kubernetes.io/scheme: internet-facing
spec:
  rules:
  - http:
      paths:
      - path: /api
        pathType: Prefix
        backend:
          service:
            name: hornet-rest
            port:
              name: rest
      - path: /
        pathType: Prefix
        backend:
          service:
            name: hornet-0
            port:
              name: dashboard
