utils

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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGatewayIP

func GetGatewayIP() (string, error)

GetGatewayIP is used to get the IP that needs to be used to direct the traffic from the director nodes to the gateway node. IP that will be picked will be based on the CNI used and if it direct routing or overlay. In case of ovarlays IP from the pod CIDR that is associated with the gateway node will be used

func GetNodeIP

func GetNodeIP(node *apiv1.Node) (net.IP, error)

GetNodeIP returns the most valid external facing IP address for a node. Order of preference: 1. NodeInternalIP 2. NodeExternalIP (Only set on cloud providers usually)

func GetNodeObject

func GetNodeObject(clientset kubernetes.Interface, hostnameOverride string) (*apiv1.Node, error)

GetNodeObject returns the node API object for the node

Types

This section is empty.

Jump to

Keyboard shortcuts

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