turbot/kubernetes_compliance
Loading controls...

Control: StatefulSet containers should not run with host network access

Description

Containers in a StatefulSet should not run in the host network of the node where the pod is deployed. When running on the host network, the pod can use the network namespace and network resources of the node. In this case, the pod can access loopback devices, listen to addresses, and monitor the traffic of other pods on the node.

Usage

Run the control in your terminal:

powerpipe control run kubernetes_compliance.control.statefulset_host_network_access_disabled

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run kubernetes_compliance.control.statefulset_host_network_access_disabled --share

SQL

This control uses a named query:

statefulset_host_network_access_disabled

Tags