Skip to content
masterclass Buddy

DevOps · Concept

Ingress

Ingress routes external HTTP or HTTPS requests to Kubernetes Services by host and path rules. An Ingress controller applies the rules; the API is stable but frozen, and Kubernetes recommends Gateway for new designs.

Last updated

Since
Kubernetes v1.19

Syntax

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: <name>
spec:
  ingressClassName: <class>
  rules:
  - host: <hostname>
    http:
      paths:
      - path: <path>
        pathType: Prefix|Exact|ImplementationSpecific
        backend:
          service:
            name: <service-name>
            port:
              name: <port-name>
              # or number: <port-number>

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • IngressClass
  • Gateway API
  • Service
  • NodePort
  • LoadBalancer
  • NetworkPolicy

Source: Ingress | Kubernetes. Checked 2026-11-03.