Documentation
¶
Overview ¶
Package networkpolicy builds Cilium isolation and controlled egress policies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExternalEgress ¶
func ExternalEgress(targets []Target) []ciliumapi.EgressRule
ExternalEgress permits only the supplied FQDN or IP destinations and their ports.
func ReconcileRuntimeIsolation ¶ added in v0.29.0
func ReconcileRuntimeIsolation(ctx context.Context, c client.Client, namespace *corev1.Namespace) error
ReconcileRuntimeIsolation keeps private runtime ingress denied independently of grants and Sandboxes. Namespace ownership keeps it in place during pod teardown.
func ServiceEgress ¶
func ServiceEgress(namespace, name string, port int32, morePorts ...int32) []ciliumapi.EgressRule
ServiceEgress permits DNS resolution and exact Kubernetes Service TCP ports.