# Adding alias to ingress

**URL:** <https://forum.ansible.com/t/adding-alias-to-ingress/37927>\
**Category:** AWX Project\
**Tags:** awx\
**Created:** [April 25, 2023, 4:10pm UTC](https://forum.ansible.com/t/adding-alias-to-ingress/37927 "2023-04-25T16:10:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anasaizg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/anasaizg/32/1052_2.png) [@anasaizg](https://forum.ansible.com/u/anasaizg)\
**Post date:** [April 25, 2023, 4:10pm UTC](https://forum.ansible.com/t/adding-alias-to-ingress/37927/1 "2023-04-25T16:10:31Z")

</div>

Hi everyone!

We are running AWX 21.13.0 over k3s and we would like to have an alias to the host, so for example users can access AWX interface both in [awx.example.com](http://awx.example.com) and awxdev. Both names are defined in an external DNS.

I have tried editing the ingress with “kubectl -n awx edit ingress” to add both hosts and it works, but after some time it is refreshed and goes back to just [awx.example.com](http://awx.example.com).

I have also tried applying an ingress file with both hosts using “kubectl -n awx create -f awx-ingress.yml”, but after some time it seems AWX ends up creating another one and using it instead, going back to [awx.example.com](http://awx.example.com).

How could I configure this so it is persistent?

Thanks!

---

<div class="post-metadata">

**Author:** ![anasaizg](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/anasaizg/32/1052_2.png) [@anasaizg](https://forum.ansible.com/u/anasaizg)\
**Post date:** [April 26, 2023, 2:00pm UTC](https://forum.ansible.com/t/adding-alias-to-ingress/37927/2 "2023-04-26T14:00:50Z")

</div>

Ok, nevermind, my lack of experience with k3s made me think wrongly. I have created another ingress in the same namespace with the alias and everything is working now 🙂

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [May 5, 2023, 5:44pm UTC](https://forum.ansible.com/t/adding-alias-to-ingress/37927/3 "2023-05-05T17:44:41Z")

</div>

thanks for letting us know you fixed it! cheers

AWX Team
