networkpolicy

package
v0.30.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

Types

type Target

type Target struct {
	Host string
	Port int32
}

Target is one admitted TCP destination.

func URLTarget

func URLTarget(raw string) (Target, error)

URLTarget resolves the exact TCP destination represented by an HTTP URL.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL