apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: mastodon
spec:
  defaultBackend:
    service:
      name: redirect
      port:
        number: 8080
  rules:
  - host: ykzts.technology
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: mastodon-web
            port:
              number: 3000
      - path: /api/v1/streaming/
        pathType: Prefix
        backend:
          service:
            name: mastodon-streaming
            port:
              number: 4000
      - path: /assets/
        pathType: Prefix
        backend:
          service:
            name: mastodon-assets
            port:
              number: 3000
      - path: /emoji/
        pathType: Prefix
        backend:
          service:
            name: mastodon-assets
            port:
              number: 3000
      - path: /packs/
        pathType: Prefix
        backend:
          service:
            name: mastodon-assets
            port:
              number: 3000
  - host: files.ykzts.technology
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: manael
            port:
              number: 8080
