apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: supabase-basket-kong-ingress
  namespace: geocrop
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
    nginx.ingress.kubernetes.io/proxy-body-size: "500m"
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - basket.techarvest.co.zw
    secretName: supabase-basket-tls
  rules:
  - host: basket.techarvest.co.zw
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: supabase-basket-supabase-kong
            port:
              number: 8000
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: supabase-basket-studio-ingress
  namespace: geocrop
  annotations:
    cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
  ingressClassName: nginx
  tls:
  - hosts:
    - studio.basket.techarvest.co.zw
    secretName: supabase-basket-studio-tls
  rules:
  - host: studio.basket.techarvest.co.zw
    http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: supabase-basket-supabase-studio
            port:
              number: 3000
