StackLight rules for Kubernetes network policies
The Kubernetes NetworkPolicy resource allows controlling network connections to and from Pods within a cluster. This enhances security by restricting communication from compromised Pod applications and provides transparency into how applications communicate with each other.
Network Policies are enabled by default in StackLight using the
networkPolicies parameter. For configuration details, see
Kubernetes network policies.
The following table contains general network policy rules applied to StackLight components:
The following exceptions apply to the StackLight network policy rules:
Because Prometheus Node Exporter uses the host network, the allow-all rule applies to both ingress and egress that is the no-op placeholder.
Due to dynamically created scrape configurations, the allow-all rule applies to egress for Prometheus Server.