---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ouistity
  annotations:
    kubernetes.io/ingress.class: nginx
    cert-manager.io/cluster-issuer: ca-cluster-issuer
    flame.pawelmalak/name: ouistity
    flame.pawelmalak/url: dev.comics.shokohsc.home
    flame.pawelmalak/type: app
    flame.pawelmalak/icon: wrench
spec:
  rules:
  - host: dev.comics.shokohsc.home
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: ouistity
            port:
              number: 80
  # - host: dev.comics.shokohsc.home
  #   http:
  #     paths:
  #     - path: /
  #       pathType: Prefix
  #       backend:
  #         service:
  #           name: ouistity
  #           port:
  #             number: 3000
  # - host: preview.comics.shokohsc.home
  #   http:
  #     paths:
  #     - path: /
  #       pathType: Prefix
  #       backend:
  #         service:
  #           name: ouistity
  #           port:
  #             number: 5000
  # - host: browsersync.comics.shokohsc.home
  #   http:
  #     paths:
  #     - path: /
  #       pathType: Prefix
  #       backend:
  #         service:
  #           name: ouistity
  #           port:
  #             number: 3002
  tls:
  - hosts:
    - dev.comics.shokohsc.home
    # - preview.comics.shokohsc.home
    # - browsersync.comics.shokohsc.home
    secretName: ouistity-cert
