# Custom ingress not working

**URL:** <https://forum.gitea.com/t/custom-ingress-not-working/4242>\
**Category:** Install/Maintain/Configure\
**Created:** [December 13, 2021, 7:27pm UTC](https://forum.gitea.com/t/custom-ingress-not-working/4242 "2021-12-13T19:27:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![wagfeliz](https://avatars.discourse-cdn.com/v4/letter/w/dbc845/32.png) [@wagfeliz](https://forum.gitea.com/u/wagfeliz)\
**Post date:** [December 13, 2021, 7:27pm UTC](https://forum.gitea.com/t/custom-ingress-not-working/4242/1 "2021-12-13T19:27:35Z")

</div>

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](http://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.

---

<div class="post-metadata">

**Author:** ![wagfeliz](https://avatars.discourse-cdn.com/v4/letter/w/dbc845/32.png) [@wagfeliz](https://forum.gitea.com/u/wagfeliz)\
**Post date:** [December 13, 2021, 7:43pm UTC](https://forum.gitea.com/t/custom-ingress-not-working/4242/2 "2021-12-13T19:43:55Z")

</div>

Found it :

apiVersion: [networking.k8s.io/v1](http://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.
