Software delivery

Kubernetes Ingress Routing, TLS and Controller Support

The Kubernetes Ingress API describes HTTP(S) routing but requires a separately installed controller to implement it. This guide uses the stable networking.k8s.io/v1 API and documents controller-neutral behavior. Important support update: the community ingress-nginx project was retired on March 24, 2026, with no further releases, bug fixes or security updates. Existing installations may continue to function, but plan and test a move to a maintained controller or Gateway API. F5 NGINX Ingress Controller is a distinct project with different support and configuration; this page does not recommend the retired community controller for new deployments.

Define the decision before opening a tool

Start by writing the question this work must answer. For this task, collect Ingress resources, controller implementations, TLS configuration, routing behavior, controller-specific annotations and Gateway API migration planning. A small representative sample is more useful than a large export nobody can interpret. Note the date range, source and any recent changes so later comparisons are honest.

  • Name the decision and owner
  • Collect a representative sample
  • Record assumptions and recent changes

Make the smallest safe change

The next action is to Kubernetes Ingress API resources do not handle traffic by themselves; a controller implements them. Community ingress-nginx was retired in March 2026, so do not recommend it for new deployments. Inventory existing annotations and routing behavior, then evaluate a maintained controller or Gateway API implementation using its official migration guidance.. Work from the underlying cause where possible instead of applying a cosmetic fix to each symptom. Keep a short change log with the page, campaign, component or workflow affected so the team can roll back or investigate later.

  • Prioritize the highest-impact cause
  • Test in a safe environment when available
  • Publish one clearly documented change

Validate what actually changed

Test host and path routing, TLS, redirects, controller-specific features and rollback in a staging environment. Distinguish the retired community ingress-nginx controller from the Kubernetes Ingress API, which remains available but is frozen.. Validation should reflect the original question and include the user path, not only a dashboard metric. If the evidence is inconclusive, record that outcome and choose a narrower follow-up rather than overstating success.

  • Re-test the affected path
  • Compare against the recorded baseline
  • Decide the next step from evidence

Choose a maintained controller before writing Ingress rules

An Ingress resource has no effect without a controller that watches its IngressClass. The class name below is an example and must match the chosen controller's installed IngressClass. Kubernetes recommends Gateway API for new capability development; the Ingress API remains stable but is frozen. Controller selection depends on support lifecycle, required features, operational model and migration constraints. Do not assume annotations or defaults transfer between community ingress-nginx and F5 NGINX Ingress Controller.

  • Confirm current project support and security maintenance
  • Identify the installed controller and IngressClass
  • Compare required features with its current official documentation

Route a host and prefix to a Service

This generic example follows the Kubernetes Ingress v1 schema. Replace the illustrative class, hostname and Service with resources in your cluster. Prefix path matching is path-element based; backend port 80 refers to the Service port, not necessarily a container port. The Service and Ingress should be in the same namespace. Rewrite behavior, regex matching, timeouts and other advanced features are controller-specific and deliberately omitted here.

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: app-route
  namespace: app
spec:
  ingressClassName: example-controller
  rules:
    - host: app.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: app-service
                port:
                  number: 80
  • Match ingressClassName to an installed class
  • Confirm Service name, namespace and exposed port
  • Test exact host and path behavior against the selected controller

Attach TLS with a namespaced Secret

For standard Ingress TLS, reference a Secret in the same namespace as the Ingress. A kubernetes.io/tls Secret contains tls.crt and tls.key, and the certificate must cover the configured hostname. Standard Ingress TLS terminates at the ingress point; traffic from the controller to the Service is plaintext unless a separate controller-specific backend TLS feature is configured. TLS behavior and redirects vary between controllers. Specifying spec.tls does not portably guarantee HTTP-to-HTTPS redirection. The fragment below is not a standalone manifest: merge tls into the preceding Ingress spec, retaining ingressClassName and the other fields.

spec:
  tls:
    - hosts:
        - app.example.com
      secretName: app-tls
  rules:
    - host: app.example.com
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: app-service
                port:
                  number: 80
  • Verify the Secret namespace, type and certificate hostname
  • Check TLS termination and backend encryption requirements
  • Configure redirects only using supported controller documentation

Troubleshoot from Kubernetes objects outward

Start with kubectl describe ingress and inspect events, the IngressClass, controller logs, Service endpoints, DNS resolution and certificate status. A correct manifest cannot fix a missing Service port or selector. Confirm that DNS reaches the intended load balancer and that the request Host header and path match the rule. For TLS failures, check certificate expiry, hostname coverage, Secret keys and controller events before changing annotations.

kubectl get ingress,ingressclass -A
kubectl describe ingress app-route -n app
kubectl get service,endpointslices -n app
kubectl logs -n <controller-namespace> deploy/<controller-deployment>
  • Check events and controller reconciliation
  • Verify Service endpoints and DNS/load-balancer reachability
  • Test certificate and route with a non-sensitive request

Plan migration from retired community ingress-nginx

Kubernetes SIG Network and the Security Response Committee retired community ingress-nginx on March 24, 2026. Existing deployments and artifacts can remain available, but the project receives no releases, bug fixes or security updates. Inventory every ingress-nginx annotation, rewrite, authentication policy, timeout, allowlist and TLS behavior before selecting a replacement. Migration tools can assist with translation, but generated Gateway API resources or another controller configuration require review and staging tests; alternatives are not guaranteed drop-in replacements.

  • Inventory classes, annotations, custom snippets and dependencies
  • Select a supported replacement based on needed features
  • Translate, test representative traffic and define rollback before cutover

Questions to keep in view

Who should own kubernetes ingress controller guide?

Assign one accountable owner, while involving the people who manage the affected content, campaigns, code or customer workflow.

How quickly will this show results?

Timing varies with the system, traffic and external platform processing. Validate the implementation first, then monitor the relevant signal over an appropriate period.

Is community ingress-nginx still supported?

No. Kubernetes announced its retirement on March 24, 2026. Existing deployments may continue to run, but receive no further releases, bug fixes or security updates.

Does adding a TLS section force HTTP to HTTPS?

Not portably. Redirect behavior is controller-specific and must be configured and tested using the selected controller's current documentation.

Should I use Ingress or Gateway API?

Ingress remains stable but is frozen. Kubernetes recommends Gateway API for new capabilities; select based on controller support, feature needs and a tested migration plan.