One external request, many internal Services
A browser opens https://shop.example.com/api/orders. Inside the cluster are two Services: web serves pages and api serves data.
Instead of opening an external address per Service, you want one entry that routes by domain and path. Those routing rules are an Ingress.
An Ingress is a rule document; the controller receives requests
An Ingress does not handle requests itself. It is only a document with rules such as "on shop.example.com, / goes to web and /api goes to api".
The controller (the ingress implementation) installed in the cluster actually receives requests and forwards them by the rules. It keeps watching Ingress rules and applies them.
Key ideaCreating an Ingress with kubectl apply only stores a document. If you cannot connect, check whether the problem is in the rules or the controller.
Match the host, then pick a Service by path
The controller first finds rules whose host (shop.example.com) matches, then looks at the path. With the Prefix path type, /api also matches /api/orders.
When both / and /api match, the longer path /api wins. So /api/orders goes to api, and everything else goes to web.
The IngressClass picks the implementation
A cluster can have several ingress implementations. The Ingress's ingressClassName field decides which implementation handles these rules.
There are many implementations (for example, Traefik, HAProxy, Istio). The widely used ingress-nginx was retired in March 2026 and gets no more fixes, so new clusters should pick a maintained controller or the Gateway API. Run kubectl get ingressclass to see which classes exist and which is the default. Here, the Istio ingress handles it.
If the class points to no implementation, nothing happens
If the implementation the IngressClass points to is not in the cluster, the rules exist but nobody reads them. No address is assigned and no requests are forwarded.
If the ADDRESS column in kubectl get ingress is empty, suspect the handler first. A typo in the class name or a dead controller pod looks the same.
Watch outCorrect rules are useless without a handler. An Ingress with no address may be a handler problem, not a rule error.
The entry decrypts HTTPS with the Secret's certificate
In the Ingress tls field, list the host and a Secret name (a Secret holds sensitive values such as certificates). The controller decrypts HTTPS with that Secret's certificate and key.
This is called TLS termination. Encryption ends at the entry, and the decrypted request goes to the Service by the rules. Certificates expire, so renewal becomes an ops task.
Key ideaThe Secret must be of type kubernetes.io/tls and live in the same namespace as the Ingress. Renewal is often automated with a tool such as cert-manager.
An Ingress is created even if it points to a missing Service
The /cart rule points to a cart Service that does not exist. The Ingress is created without error, and the problem shows up only as a failed connection when someone visits.
The Service a rule points to must actually exist in the same namespace, and it must select pods.
Overlapping path rules send everything one way
If you wrote the /api rule as Exact, /api/orders does not match /api. The / rule catches it instead and sends it to web.
If paths that should go to different places all go to one, check that each rule is its own entry, and that the path types (Prefix, Exact) and ranges do not overlap.
Rules, class, and TLS must all line up
An Ingress is made of host and path rules, an IngressClass that picks the implementation, and a certificate Secret for HTTPS. If any one is off, connections can fail with no error.
The Ingress API is frozen and gets no new features. If you need richer routing rules, look at the Gateway API too.
SummaryAn Ingress works only when rules, class, and TLS Secret all line up. Many failures raise no error at creation, so follow each rule to its Service and that Service's endpoints.