No host network sharing

Proprietary

When using the host network mode for a container, that container’s network stack is not isolated from the Docker host, so the container shares the host’s networking namespace and does not get its own IP-address allocation.

org.openrewrite.kubernetes.NoHostNetworkSharing
mod run . --recipe=org.openrewrite.kubernetes.NoHostNetworkSharing

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Add Kubernetes pod spec configuration hostNetwork: false