# host based routing

apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: ingress-resource
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
spec:
  rules:
  - host: target.lab.com
    http:
      paths:
      - path: /
        backend:
          serviceName: target-app
          servicePort: 8080
  - host: www.shop.net
    http:
      paths:
      - path: /
        backend:
          serviceName: shop-app
          servicePort: 5876
