teluzia.Cloud Engineer · Day 116
CHAPTER 17 · KUBERNETES FUNDAMENTALS

Ingress and networking

4–5 hours including independent practice3 topics
LET’S MAKE THIS SIMPLE

What you’re learning today

Ingress is the road sign for incoming HTTP traffic; the controller is the traffic officer who actually implements the route. An Ingress object describes HTTP or HTTPS host/path routing to Services. An installed compatible controller implements those rules; an object alone does not create a functioning traffic path. IngressClass selects controller behavior. Gateway API is another evolving API family and should not be confused with traditional Ingress manifests. The networking implementation provides Pod connectivity while Services supply stable virtual access and discovery. Diagnose client -> controller -> Service -> ready endpoint -> container port in sequence. A working Pod can still be unreachable due to a bad Service targetPort or missing endpoint selection.

Think of it this way

Ingress is the road sign for incoming HTTP traffic; the controller is the traffic officer who actually implements the route.

TOPIC 01 / 03Step by step

Ingress and its controller

An Ingress object describes HTTP or HTTPS host/path routing to Services. An installed compatible controller implements those rules; an object alone does not create a functioning traffic path. IngressClass selects controller behavior. Gateway API is another evolving API family and should not be confused with traditional Ingress manifests. For example, host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

WORKED EXAMPLE
Host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

A request arrives for reports.example with path /weekly. An installed Ingress controller evaluates the relevant Ingress rules and sends the request to a named Service and port. The Ingress object describes routing intent, while the controller and its entry point implement it. Without a compatible controller, creating the object does not provide a functioning external path.

Ingress describes HTTP-oriented routing. IngressClass selects controller handling. A controller watches objects and realizes configuration through its implementation. Controller-specific annotations and capabilities differ, so read the chosen implementation's official guidance. Gateway API is a different API family with its own resources and support, not a spelling change to an Ingress file. Verify external address, hostname resolution, routing rule, and backend endpoints separately. A successful in-cluster request to the Service is useful but does not establish that the external TLS or host-routing path works.

Why this matters

Host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

A common trap

Do not overlook this operational distinction: Gateway API is another evolving API family and should not be confused with traditional Ingress manifests.

MAKE IT VISIBLE

Follow a request through the system

FOLLOW THE SIGNAL

What happens after you press Enter?

Explore a common HTTPS request path. Select a stage, then inject a simulated failure to see what you would investigate.

STAGE 1

Find the destination

The browser resolves a hostname to an address using DNS. A cached answer may avoid a new lookup. If resolution fails, the request never reaches the server.

Read all topics in this lesson

A complete reference to revisit alongside the guided steps above.

Ingress and its controller

An Ingress object describes HTTP or HTTPS host/path routing to Services. An installed compatible controller implements those rules; an object alone does not create a functioning traffic path. IngressClass selects controller behavior. Gateway API is another evolving API family and should not be confused with traditional Ingress manifests. For example, host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

WORKED EXAMPLE
Host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

A request arrives for reports.example with path /weekly. An installed Ingress controller evaluates the relevant Ingress rules and sends the request to a named Service and port. The Ingress object describes routing intent, while the controller and its entry point implement it. Without a compatible controller, creating the object does not provide a functioning external path.

Ingress describes HTTP-oriented routing. IngressClass selects controller handling. A controller watches objects and realizes configuration through its implementation. Controller-specific annotations and capabilities differ, so read the chosen implementation's official guidance. Gateway API is a different API family with its own resources and support, not a spelling change to an Ingress file. Verify external address, hostname resolution, routing rule, and backend endpoints separately. A successful in-cluster request to the Service is useful but does not establish that the external TLS or host-routing path works.

Why this matters

Host app.example.test and path / route to Service web port 80, but only a controller can realize the external entry point.

A common trap

Do not overlook this operational distinction: Gateway API is another evolving API family and should not be confused with traditional Ingress manifests.

Pod and Service networking

The networking implementation provides Pod connectivity while Services supply stable virtual access and discovery. Diagnose client -> controller -> Service -> ready endpoint -> container port in sequence. A working Pod can still be unreachable due to a bad Service targetPort or missing endpoint selection. For example, ingress sends traffic to Service port 80, which targets a Pod’s port 8080; each number has a distinct purpose.

WORKED EXAMPLE
Ingress sends traffic to Service port 80, which targets a Pod’s port 8080; each number has a distinct purpose.

A Pod responds locally on port 9000, but an external request times out. Trace the client to the controller entry point, then to Service port, selected ready endpoints, and target container port. Check labels and readiness before changing the network plugin. Each hop supplies evidence for a different class of problem.

Pod networking provides connectivity among workload addresses according to the implementation. Service discovery presents stable access to replaceable Pods. An EndpointSlice records relevant backend endpoint information. A route or firewall can block packets even when names and ports are correct. Conversely, a missing endpoint is not fixed by opening every firewall rule. Use a known controlled request from the appropriate source location and document its path. Network troubleshooting becomes faster when each check asks whether the previous hop can reach the next, rather than using repeated broad configuration changes whose effects cannot be attributed.

Why this matters

Ingress sends traffic to Service port 80, which targets a Pod’s port 8080; each number has a distinct purpose.

A common trap

Do not overlook this operational distinction: A working Pod can still be unreachable due to a bad Service targetPort or missing endpoint selection.

NetworkPolicy and TLS

NetworkPolicy expresses allowed traffic when the cluster network implementation enforces it. Policies selecting Pods can isolate relevant traffic directions, so DNS and required dependencies need consideration. TLS termination, certificate handling, and backend encryption requirements should be documented separately from route matching. For example, a default-deny policy must be paired with explicit allowed ingress and needed egress; enforcement requires a supporting network plugin.

WORKED EXAMPLE
A default-deny policy must be paired with explicit allowed ingress and needed egress; enforcement requires a supporting network plugin.

A namespace applies a policy that selects all application Pods and denies relevant traffic by default. The team then permits ingress from its controller and egress to DNS and required data services. Whether these rules actually take effect depends on the network implementation's NetworkPolicy support. Merely storing a policy object does not prove enforcement.

Ingress policy governs traffic entering selected Pods. Egress policy governs traffic leaving them. TLS termination is the point where an encrypted client channel is decrypted. Standard NetworkPolicy controls have defined capabilities and are not universal application-layer firewalls. Policy mistakes can block DNS, making every hostname-based dependency seem broken. Test permitted and denied flows explicitly. TLS terminated at the ingress controller does not automatically encrypt controller-to-backend traffic. Decide whether backend encryption is required and configure it deliberately. Network policy and certificate management protect different boundaries and should not be treated as interchangeable security checkboxes.

Why this matters

A default-deny policy must be paired with explicit allowed ingress and needed egress; enforcement requires a supporting network plugin.

A common trap

Do not overlook this operational distinction: TLS termination, certificate handling, and backend encryption requirements should be documented separately from route matching.

KEEP THESE WITH YOU

Today’s takeaways

Ingress and its controller: An Ingress object describes HTTP or HTTPS host/path routing to Services. An installed compatible controller implements those rules; an object alone does not create a functioning traffic path. IngressClass selects controller behavior. Gateway API is another evolving API family and should not be confused with traditional Ingress manifests.

Pod and Service networking: The networking implementation provides Pod connectivity while Services supply stable virtual access and discovery. Diagnose client -> controller -> Service -> ready endpoint -> container port in sequence. A working Pod can still be unreachable due to a bad Service targetPort or missing endpoint selection.

NetworkPolicy and TLS: NetworkPolicy expresses allowed traffic when the cluster network implementation enforces it. Policies selecting Pods can isolate relevant traffic directions, so DNS and required dependencies need consideration. TLS termination, certificate handling, and backend encryption requirements should be documented separately from route matching.

CLOSE THE LOOP

Ready to complete this day?

Verify the practical steps and pass the knowledge check (at least two thirds correct).

Lab steps verifiedKnowledge check passed