Documentation ¶
Index ¶
- func GetDefaultDomainsForSvc(ns, name string) []string
- func GetTunnelServerAddr(clientset kubernetes.Interface) (string, error)
- func GetYurttunelServerDNSandIP(clientset kubernetes.Interface) ([]string, []net.IP, error)
- func NodeListToNodes(nodeLst *corev1.NodeList) []*corev1.Node
- func YurttunnelServerAddrManager(factory informers.SharedInformerFactory) ([]string, []net.IP, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetDefaultDomainsForSvc ¶
getDefaultDomainsForSvc get default domains for specified service
func GetTunnelServerAddr ¶
func GetTunnelServerAddr(clientset kubernetes.Interface) (string, error)
GetServerAddr gets the service address that exposes the tunnel server for tunnel agent to connect
func GetYurttunelServerDNSandIP ¶
GetYurttunelServerDNSandIP gets DNS names and IPS for generating tunnel server certificate. the following items are usage:
- dns names and ips will be added into the yurttunnel-server certificate.
- ips may be used by tunnel agent to connect tunnel server
attention:
- when the type of x-tunnel-server-svc service is LB, make sure the first return ip is LB ip address
- when the type of x-tunnel-server-svc service is ClusterIP, if the x-tunnel-server-external-addr annotation is set, make sure the return ip is annotation setting.
func NodeListToNodes ¶ added in v0.6.0
func YurttunnelServerAddrManager ¶ added in v0.6.0
func YurttunnelServerAddrManager(factory informers.SharedInformerFactory) ([]string, []net.IP, error)
YurttunelServerAddrManager list the latest tunnel server resources, extract ips and dnsNames from them
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.