hilmanm
hilmanm

Reputation: 1

Expose specific path inside service with nginx ingress

I have service A and inside service there's /a-path. How can I only expose specific path inside the service on not expose the whole service.

Upvotes: 0

Views: 365

Answers (1)

Kun Li
Kun Li

Reputation: 2755

the following configuration will do this:

  rules:
  - host: service.example.com
    http:
      paths:
      - path: /a-path
        backend:
          serviceName: a-svc
          servicePort: 80

Upvotes: 2

Related Questions