Multiple ingress rules in different namespaces


This Content is from Stack Overflow. Question asked by dapi

I have a default namespace with nginx, some app and one ingress rule.
I want to create a test environment in the same cluster, different namespace: test.
I duplicated everything except nginx controller (this is in default namespace).

Unfortunatelly, the Ingress rule file(the one with kind:ingress) from test is ignored by the nginx from default namespace.
Is there a rule that “2 different rules of the same ingress must be in the same namespace”?
Should I use an nginx controller for ever namespace?


This question is not yet answered, be the first one who answer using the comment. Later the confirmed answer will be published as the solution.

This Question and Answer are collected from stackoverflow and tested by JTuto community, is licensed under the terms of CC BY-SA 2.5. - CC BY-SA 3.0. - CC BY-SA 4.0.

people found this article helpful. What about you?