---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ems-demo
  annotations:
    kubernetes.io/ingress.class: "nginx"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
    nginx.ingress.kubernetes.io/proxy-ssl-verify: "off"
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
spec:
  tls:
    - hosts: ["kibana.{{YOUR_DOMAIN}}"]
      # secret populated with valid certificates for kibana.{{YOUR_DOMAIN}}
      secretName: kibana-certs
    - hosts: ["maps.{{YOUR_DOMAIN}}"]
      # secret populated with valid certificates for maps.{{YOUR_DOMAIN}}
      secretName: maps-certs
  rules:
    - host: "maps.{{YOUR_DOMAIN}}"
      http:
        paths:
          - path: "/"
            pathType: Prefix
            backend:
              service:
                name: ems-sample-ems-http
                port:
                  name: https
    - host: "kibana.{{YOUR_DOMAIN}}"
      http:
        paths:
          - path: "/"
            pathType: Prefix
            backend:
              service:
                name: kibana-kb-http
                port:
                  name: https
