Aggregating two hosts

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-configure-hosts
spec:
  rules:
  - host: viewer.mhlien.tw
    http:
      paths:
      - path: /main
        backend:
          serviceName: main-k8s
          servicePort: <service1-port>
  - host: watch.mhlien.tw
    http:
      paths:
      - path: /media
        backend:
          serviceName: media-k8s
          servicePort: <service2-port>

Terminating TLS

apiVersion: v1
kind: Secret
type: kubernetes.io/tls
metadata:
  name: tlssecret-main
data:
  tls.crt: <base64 encoded cert>
  tls.key: <base64 encoded key>
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-main
spec:
   tls:
   - hosts:
     - main.mhlien.tw
     secretName: tlssecret-main
  rules:
  - host: main.mhlien.tw
    http:
      paths:
      - path: /main
        backend:
          serviceName: main-k8s
          servicePort: <service-port>

Advanced Ingress Configuration
NGINX Ingress Controller