Ingress
What is Ingress?
Ingress: HTTP/HTTPS routing rules — host- and path-based — that send external traffic to Services. Needs an Ingress controller (nginx, Traefik) to do the actual work. An Ingress defines how HTTP and HTTPS traffic from outside reaches services inside a Kubernetes cluster. Rules route by host name and path, so shop.example.com goes to the shop service and api.example.com to the API.
Frequently asked questions about Ingress
How is Ingress used in practice?
An Ingress is only a set of rules. An Ingress controller, such as ingress-nginx or Traefik, does the actual work of receiving traffic and forwarding it. Together with cert-manager, it can also handle TLS certificates automatically.
What should you keep in mind with Ingress?
Settings like upload size limits, timeouts and redirects are usually set through controller-specific annotations, so check your controller's documentation. Newer clusters can use the Gateway API, a more expressive successor to Ingress. For most web applications, one Ingress per application with clear host rules keeps routing easy to understand.
What does an example of Ingress look like?
apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: web spec: rules: - host: example.com http: paths: - path: / pathType: Prefix backend: service: name: web port: { number: 80 } At a glance
| Category | Kubernetes |
|---|---|
| Explained by | Reinier de la Parra |
| Updated |