masq

package
v1.8.5 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2025 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanRules added in v1.8.3

func CleanRules()

Types

type IPMasqAgent

type IPMasqAgent struct {
	// contains filtered or unexported fields
}

IPMasqAgent is based on https://github.com/kubernetes-incubator/ip-masq-agent but collapsed into kindnetd and made ipv6 aware in an opinionated and simplified fashion using "github.com/coreos/go-iptables"

func NewIPMasqAgent

func NewIPMasqAgent(nodeInformer coreinformers.NodeInformer, noMasqueradeCIDRs string) (*IPMasqAgent, error)

NewIPMasqAgent returns a new IPMasqAgent that avoids masquerading the intra-cluster traffic but allows to masquerade the cluster to external traffic.

func (*IPMasqAgent) Run added in v1.8.2

func (ma *IPMasqAgent) Run(ctx context.Context) error

func (*IPMasqAgent) SyncRules

func (ma *IPMasqAgent) SyncRules(ctx context.Context) error

SyncRules syncs ip masquerade rules

Jump to

Keyboard shortcuts

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