Documentation ¶
Index ¶
- type EgressDirector
- func (d *EgressDirector) AddRouteToGateway(routingID string, routingName string, tableName string, sourceIPs []string, ...) error
- func (d *EgressDirector) DeleteRouteToGateway(routingID string, routingName string, tableName string, sourceIPs []string, ...) error
- func (d *EgressDirector) Setup() error
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