---
#apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ui
  annotations:
    kubernetes.io/ingress.class: "nginx"
#    nginx.ingress.kubernetes.io/ssl-redirect: "true"
#    nginx.ingress.kubernetes.io/ingress.allow-http: "false"
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
spec:
  tls:
  - secretName: ui-ingress

  defaultBackend:
    service:
      name: ui
      port:
        number: 9292
#    serviceName: ui
#    servicePort: 9292

#  rules:
#  - hosts:
#    http:
#      paths:
#      - path: /
#        backend:
#          serviceName: ui
#          servicePort: 9292
