Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions modules/ossm-ambient-networkpolicy-health-probes.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
////
This module included in the following assemblies:
* service_mesh/v3x/ossm-service-mesh-3-0-overview.adoc
////
:_mod-docs-content-type: CONCEPT
[id="ossm-ambient-networkpolicy-health-probes_{context}"]
= Configuring network policies for health probes in ambient mode

In {SMProductName} 3 ambient mode, when OVN-Kubernetes local gateway mode is enabled (`routingViaHost: true`), the ztunnel proxy performs health checks on behalf of the kubelet by using source network address translation (SNAT) with the link-local IP address `169.254.7.127`.

If you apply a restrictive `NetworkPolicy` resource, such as a deny-all ingress policy, to a namespace enrolled in the ambient mesh, the ztunnel health probe traffic is blocked. This causes pod startup, readiness, or liveness probe failures.

To allow health probes to function, you must add an ingress rule that permits traffic from `169.254.7.127/32` in your `NetworkPolicy` resource:

[source,yaml]
----
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ambient-health-probes
spec:
podSelector: {}
ingress:
- from:
- ipBlock:
cidr: 169.254.7.127/32
----

[NOTE]
====
On dual-stack or IPv6-only clusters, also allow the IPv6 address `fd16:9254:7127:1337:ffff:ffff:ffff:ffff/128`.
====
4 changes: 3 additions & 1 deletion service_mesh/v3x/ossm-service-mesh-3-0-overview.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,6 @@ toc::[]
[NOTE]
====
Because {SMProductName} 3.0 releases on a different cadence from {product-title}, the {SMProductShortName} documentation is available as a separate documentation set at link:https://docs.redhat.com/en/documentation/red_hat_openshift_service_mesh[{SMProductName}].
====
====

include::modules/ossm-ambient-networkpolicy-health-probes.adoc[leveloffset=+1]