Custom ingress not working

Hi, I am trying to make an new gitea instalation to work, if I use helm with ingress enabled, it fails in the new kubernetes v1.22 because of beta usage ( I guess its an bug in the chart ).
So I am installing it with out the ingress and trying to create an custom ingress as follows :

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-ingress
namespace: gitea
spec:
ingressClassName: giteaingress
rules:

  • host: gitea.wade.com.br
    http:
    paths:
    • backend:
      service:
      name: gitea-gitea-http
      port:
      name: https-webhook
      path: /
      pathType: Prefix
      tls:
  • hosts:
    • gitea.wade.com.br
      secretName: gitea-cert-tls

The problem is that this ingress allways return 503 error, do anyone have an ingress example that works with the new kubernetes ?

Regards,
Wag.

Found it :

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: gitea-ingress
namespace: gitea
spec:
ingressClassName: giteaingress
tls:

  • hosts:
    • gitea.wade.com.br
      secretName: gitea-cert-tls
      rules:
  • host: gitea.wade.com.br
    http:
    paths:
    • path: /
      pathType: Prefix
      backend:
      service:
      name: gitea-gitea-http
      port:
      number: 3000

If anyone faces the same problem, you can just disable the ingress and create this custom one, I was missing the port number.