apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: ingress-base
  namespace: base
  annotations:
    kubernetes.io/ingress.class: traefik
    traefik.frontend.rule.type: PathPrefixStrip
    traefik.ingress.kubernetes.io/frontend-entry-points: http,https
    traefik.ingress.kubernetes.io/redirect-entry-point: https
    traefik.ingress.kubernetes.io/router.tls.certresolver: cloudflare
spec:
  # tls:
  #   - hosts: 
  #     - luojm.com
  #     secretName: secret-niceice.cn
  rules:
  - host: luojm.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: base-web
            port: 
              number: 80
  - host: base.luojm.com
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: base-web
            port: 
              number: 80
  # - host: base.luojm.com
  #   http:
  #     paths:
  #     - path: /obj
  #       pathType: Prefix
  #       backend:
  #         service:
  #           name: console
  #           port: 
  #             number: 9090
      # - path: /object-storage
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: object-storage
      #       port:
      #         number: 9090
      # - path: /auth
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: authentication-service
      #       port:
      #         number: 80
      # - path: /account
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: account-service
      #       port:
      #         number: 80
      # - path: /contacts
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: contacts
      #       port:
      #         number: 80
      # - path: /pubsub
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: pubsub-service
      #       port:
      #         number: 80
      # - path: /message
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: message-service
      #       port:
      #         number: 80
      # - path: /p2p-signaling
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: p2p-signaling-service
      #       port:
      #         number: 80
      # - path: /sfu
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: sfu-service
      #       port:
      #         number: 4443
      # - path: /sfu-web
      #   pathType: Prefix
      #   backend:
      #     service:
      #       name: mediasoup-web-service
      #       port:
      #         number: 80
      

