How to map nginx ingress rules with backend services in 3 different namespaces

Abhishek Singh 381 Reputation points
2022-10-01T14:53:23.1+00:00

I have a azure Kubernetes cluster with nginx ingress rules I want the 3 backend services for path based rules all my 3 services are 3 different namespaces can someone please guide on this.

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,447 questions
0 comments No comments
{count} votes

Accepted answer
  1. vipullag-MSFT 26,487 Reputation points Moderator
    2022-10-03T15:26:53.553+00:00

    @Abhishek Singh

    Welcome to Microsoft Q&A Platform, thanks for posting your query here.

    Based on your ask, if you have 3 deployments in 3 different namespaces, then you just need to create 3 different ingresses. 1 ingress per namespace, using a specific path, and pointing to the service/deployment in that namespace.
    Basically each namespace should have 1 deployment + 1 service + 1 ingress, that will guarantee that traffic gets directed to the correct deployment.

    Hope this helps.
    If you need further help on this, tag me in a comment.
    If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.