director

package
v0.0.0-...-8f056b7 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2019 License: Apache-2.0 Imports: 9 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() (*EgressDirector, error)

NewEgressDirector is a constructor for EgressDirector

func (*EgressDirector) AddRouteToGateway

func (d *EgressDirector) AddRouteToGateway(routingID string, routingName string, tableName 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) DeleteRouteToGateway

func (d *EgressDirector) DeleteRouteToGateway(routingID string, routingName string, tableName string, sourceIPs []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