director

package
v0.0.0-...-cae1f32 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EgressDirector

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

EgressDirector manages routing rules needed on a node to redirect egress traffic from the pods that need a static egress IP to a node acting as egress gateway based on the `staticegressip` CRD object

func NewEgressDirector

func NewEgressDirector(clientset kubernetes.Interface) (*EgressDirector, error)

NewEgressDirector is a constructor for EgressDirector

func (*EgressDirector) AddRouteToGateway

func (d *EgressDirector) AddRouteToGateway(setName string, sourceIPs []string, destinationIP, egressGateway string) error

AddRouteToGateway adds a routes on the director node to redirect traffic from a set of pod IP's (selected by service name in the rule of staticegressip CRD object) to a specific destination CIDR to be directed to egress gateway node

func (*EgressDirector) ClearStaleRouteToGateway

func (d *EgressDirector) ClearStaleRouteToGateway(setName string, destinationIP, egressGateway string) error

func (*EgressDirector) DeleteRouteToGateway

func (d *EgressDirector) DeleteRouteToGateway(setName string, destinationIP, egressGateway string) error

DeleteRouteToGateway removes the route routes on the director node to redirect traffic to gateway node

func (*EgressDirector) Setup

func (d *EgressDirector) Setup() error

Setup sets up the node with one-time basic settings needed for director functionality

Jump to

Keyboard shortcuts

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