Why Your Kubernetes Ingress Isn’t Working: Ingress Rules vs. Ingress Controllers Explained
From the publisher’s feed, collected in the ZeroLabs newsroom.
You wrote the rulebook. Nobody told you that you still need to hire a referee.Your Ingress YAML applied cleanly, but traffic still isn’t reaching your app — because an Ingress resource is just a rulebook, and it does nothing without an Ingress controller actually installed to read and enforce it. Here’s the full picture, with setup steps.Here’s a very specific kind of frustrating afternoon: you write an Ingress YAML file, following a tutorial almost exactly, run kubectl apply -f ingress.yaml, get a clean "created" message back with no errors at all — and then absolutely nothing happens. The URL you configured doesn't resolve. There's no error message pointing you anywhere useful. Kubernetes accepted your file happily and then just... didn't do the thing you expected.If this happened to you, you didn’t do anything wrong, exactly — you just ran into one of the most common and least-explained gaps in Kubernetes networking: an Ingress resource, by itself, does nothing. It's not software. It's not a running process. It's a set of rules, written down, waiting for something else entirely to come along and actually read them, understand them, and act on them.That “something else” is called an Ingress controller, and if you skipped installing one — which is extremely easy to do, because Kubernetes doesn’t stop you or warn you — your Ingress resource is currently just a very well-formatted piece of paper nobody’s reading.An Ingress resource is a rulebook. An Ingress controller is the referee who actually enforces it. A rulebook with no referee doesn’t stop a single play.The Confusion, Explained PlainlyThis mix-up happens because of how Kubernetes was deliberately designed. Kubernetes intentionally separates what you want from how it gets done — you saw this same pattern back when we covered Deployments: you declare “I want three replicas,” and something else, the Control Plane, makes that true. Ingress works on the exact same philosophy, but the “something else” isn’t built into Kubernetes core the way Deployment reconciliation is.An Ingress resource is just a declaration: "route traffic for this domain, to this path, to this Service." That's it. Kubernetes stores this rule in its API, the same way it stores any other object. But unlike a Deployment — where the built-in Control Plane automatically acts on your declaration — nothing in the Kubernetes core automatically reads Ingress rules and configures actual networking to enforce them. That job was deliberately left open for a separate, pluggable piece of software: the Ingress controller.This is genuinely a reasonable design choice, even though it trips up beginners constantly. There isn’t one single “correct” way to route HTTP traffic — different organizations want different capabilities, different performance characteristics, different feature sets. So instead of Kubernetes baking in one hardcoded solution, it defined the rulebook format (the Ingress resource) and left the actual enforcement engine as a choice you install separately.Key takeaway: Kubernetes deliberately separates the Ingress rule format from the software that enforces it — which is flexible by design, but genuinely confusing if nobody tells you the second half exists.What an Ingress Resource Actually Looks LikeHere’s a typical Ingress rule, routing traffic for a specific hostname to the Service we set up in the last article:apiVersion: networking.k8s.io/v1kind: Ingressmetadata: name: my-first-app-ingress annotations: nginx.ingress.kubernetes.io/rewrite-target: /spec: rules: - host: myapp.local http: paths: - path: / pathType: Prefix backend: service: name: my-first-app-clusterip port: number: 80Read this carefully, and you’ll notice it’s genuinely just a declaration: “when traffic arrives for myapp.local, on path /, send it to the my-first-app-clusterip Service." Notice, too, that annotations field near the top — that's actually a small clue about the gap we're discussing. Annotations are controller-specific configuration hints, meaning this particular YAML is already written with the assumption that an NGINX-based controller will be the one reading it. Different controllers expect different annotations, which is itself a sign that something external is meant to be doing the interpreting.Apply this without a controller installed, and kubectl get ingress will happily show you the resource sitting there, address column empty, quietly waiting for something that was never installed.Key takeaway: An Ingress YAML file describes intent clearly, but the fact that it needs controller-specific annotations to actually work is a strong hint that a separate piece of software is expected to be the one interpreting it.What an Ingress Controller Actually IsAn Ingress controller is real, running software — typically deployed as its own set of Pods inside your cluster — that continuously watches for Ingress resources across your cluster, reads their rules, and configures an actual underlying proxy (usually something like NGINX, HAProxy, or Envoy under the hood) to route real traffic according to those rules.This is the missing half of the equation. Once a controller is running, it does exactly what you’d hope: notices your Ingress resource, translates "route myapp.local to this Service" into actual proxy configuration, and starts genuinely handling incoming traffic that way. Without it, the Ingress object is inert — correctly stored, technically valid, and functionally useless.There isn’t one single Ingress controller — this is exactly the pluggable design mentioned earlier. A few common ones:NGINX Ingress Controller — probably the most widely used, built on the well-known NGINX proxy, with broad community support and extensive documentation.Traefik — popular for its simpler configuration model and strong integration with automatic TLS/certificate handling.Contour — built on Envoy proxy, often chosen in environments already leaning on Envoy’s feature set for more advanced traffic management.Different controllers support different annotation sets, different feature depth, and sometimes noticeably different performance characteristics — which is part of why picking one isn’t a purely arbitrary decision, even though beginners are usually fine starting with whichever one their cloud provider or tutorial defaults to.Key takeaway: An Ingress controller is the actual running software that makes Ingress rules do anything — and which one you pick genuinely matters, because they’re not interchangeable in features or configuration syntax.Installing an Ingress ControllerThis is the step that gets skipped, so let’s not skip it. On most local clusters and many cloud environments, installing the NGINX Ingress Controller looks something like this:# For Minikube specifically — enables the built-in NGINX ingress add-onminikube addons enable ingressFor clusters without a built-in add-on shortcut (Kind, k3d, or most cloud providers), the more general installation path typically uses the controller’s official manifest or a Helm chart:kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/main/deploy/static/provider/cloud/deploy.yaml(Always check the Ingress-NGINX project’s current documentation for the exact, up-to-date manifest URL and version-specific instructions before running this — these paths do change between releases.)After installing, verify the controller is actually running before doing anything else:kubectl get pods -n ingress-nginxYou should see one or more Pods with a name like ingress-nginx-controller-xxxxx, status Running. This step — actually confirming the controller Pod exists and is healthy — is the single most valuable troubleshooting habit for anyone debugging "why isn't my Ingress working." If there's no controller Pod running anywhere in your cluster, that's not a bug in your YAML. That's the entire missing half of the system.Key takeaway: Before debugging your Ingress YAML syntax, check whether an Ingress controller Pod is even running. This single check resolves an enormous share of “my Ingress isn’t working” confusion.A Quick End-to-End TestOnce your controller is installed and confirmed running, here’s how to verify the whole chain actually works, building on the my-first-app example from earlier in this series:# Confirm the Ingress resource has picked up an addresskubectl get ingress# On Minikube, this often requires a tunnel to route traffic in locallyminikube tunnelIf you configured a custom hostname like myapp.local in your Ingress rule, you'll also need an entry in your local machine's hosts file pointing that hostname to your cluster's Ingress address — a small but easy-to-forget step that causes its own round of "it's still not working" confusion, separate from the controller issue entirely.Once that’s in place, visiting http://myapp.local in a browser should route through the controller, match your Ingress rule, and land on your app — the same nginx welcome page from the first deployment tutorial, now reached through a real domain-style routing path instead of port-forward.Why This Gap Exists — and Why It’s Not a Design FlawIt’s tempting to read all this and think Kubernetes should just handle Ingress automatically, the same way it handles Deployment reconciliation out of the box. But the separation is intentional, and there’s a reasonable argument for it: baking in one hardcoded ingress implementation would force everyone into the same feature set, the same performance profile, the same limitations — regardless of whether they’re running a tiny side project or a high-traffic production API with complex routing needs.By leaving the controller as a pluggable choice, Kubernetes lets a small team pick something like Traefik for its simplicity, while a larger organization with heavier traffic management needs picks Contour or NGINX with a more elaborate configuration. That flexibility is genuinely valuable — it’s just poorly signposted for anyone encountering Ingress for the first time, which is exactly the gap this article is trying to close.Key takeaway: The rules-versus-enforcement split isn’t a missing feature — it’s a deliberate trade-off favoring flexibility over one-size-fits-all simplicity, and it’s worth understanding rather than resenting once you know why it exists.The Habit This Leaves You WithThe next time an Ingress resource applies cleanly but traffic doesn’t flow, the debugging instinct shouldn’t jump straight to re-reading your YAML indentation. It should start one level earlier: is there actually a controller running in this cluster at all, and is it healthy? That one question resolves a genuinely large share of Ingress confusion before you’ve even opened your rule file again.Once that distinction is solid — rulebook versus referee, declaration versus enforcement — a lot of other Kubernetes behavior starts looking familiar too, because it’s the same underlying pattern that shows up everywhere in this system: you declare what you want, and something else, running and watching continuously, is responsible for making it real.Did you hit this exact wall your first time working with Ingress — and how long did it take before you realized a controller was the missing piece?Why Your Kubernetes Ingress Isn’t Working: Ingress Rules vs. Ingress Controllers Explained was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.