# Switching URLs on ingresses

**URL:** <https://forums.suse.com/t/switching-urls-on-ingresses/42487>\
**Category:** SUSE Rancher Prime\
**Created:** [February 2, 2024, 2:17pm UTC](https://forums.suse.com/t/switching-urls-on-ingresses/42487 "2024-02-02T14:17:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreas\_lundhus](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andreas_lundhus/32/10927_2.png) [@andreas\_lundhus](https://forums.suse.com/u/andreas_lundhus)\
**Post date:** [February 2, 2024, 2:17pm UTC](https://forums.suse.com/t/switching-urls-on-ingresses/42487/1 "2024-02-02T14:17:44Z")

</div>

Hi.  
I am still new to rancher but have been working with it for about 2 months. Learning more and more about about K8s which brings me to this Forum 🙂

Setup:  
Currently I have two versions of the same application running in two different namespaces. In order for both of these version of the app running at the same time, I needed to give them each a unique URL on the ingresses.

I was wondering if it’s possible to switch these two URLs (Request Host) at the same time via some Command, similar to a “atomic operation” - “compare and swap” method?

My Goal is to reduce potential application downtime, as much as possible.  
I hope someone can give a idea for a solution. Thanks you in Advance

---

<div class="post-metadata">

**Author:** ![bpedersen2](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/bpedersen2/32/9899_2.png) [@bpedersen2](https://forums.suse.com/u/bpedersen2)\
**Post date:** [February 7, 2024, 5:15pm UTC](https://forums.suse.com/t/switching-urls-on-ingresses/42487/2 "2024-02-07T17:15:16Z")

</div>

With just ingresses it is probably a bit tricky for production workload. Take a look at service mesh implementations like istio.

---

<div class="post-metadata">

**Author:** ![andreas\_lundhus](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/andreas_lundhus/32/10927_2.png) [@andreas\_lundhus](https://forums.suse.com/u/andreas_lundhus)\
**Post date:** [February 15, 2024, 7:39am UTC](https://forums.suse.com/t/switching-urls-on-ingresses/42487/3 "2024-02-15T07:39:07Z")

</div>

Thanks for the reply. I did look into Istio as you suggested, but ended up doing a manual URL switch on the ingresses, when the relevant servers had a scheduled hour maintenance. I figure it’s a “niche” issue, that i likely wouldn’t see again 🙂

---

<div class="post-metadata">

**Author:** ![wioxjk](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/wioxjk/32/9439_2.png) [@wioxjk](https://forums.suse.com/u/wioxjk)\
**Post date:** [February 15, 2024, 9:41am UTC](https://forums.suse.com/t/switching-urls-on-ingresses/42487/4 "2024-02-15T09:41:44Z")

</div>

You probably want to check in kubectl and .yaml files for that 🙂

Each ingresses (with namespaces) defined in the same .yaml file, and then “kubectl apply -f file.yaml”
