Documentation ¶
Index ¶
- Variables
- func GetNodeByPodIP(podIp string) (string, error)
- func GetNodeIPByName(name string) (string, error)
- func GetServiceByClusterIP(clusterIp string) (*v1.Service, error)
- func InitCache(path string, stopCh chan struct{})
- func MetaNameIndexFunc(obj interface{}) ([]string, error)
- func PodIPKeyFunc(obj interface{}) ([]string, error)
- func ServiceIPKeyFunc(obj interface{}) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ServiceLister listersv1.ServiceLister EndpointLister listersv1.EndpointsLister NodeLister listersv1.NodeLister )
Functions ¶
func GetNodeByPodIP ¶
Get the name of the node where the pod is located based on podIp
func GetNodeIPByName ¶
Get the internalIp of the node based on the node name
func GetServiceByClusterIP ¶ added in v0.8.0
func MetaNameIndexFunc ¶
func ServiceIPKeyFunc ¶ added in v0.8.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.