serveraddr

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultDomainsForSvc

func GetDefaultDomainsForSvc(ns, name string) []string

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

func GetYurttunelServerDNSandIP(
	clientset kubernetes.Interface) ([]string, []net.IP, error)

GetYurttunelServerDNSandIP gets DNS names and IPS for generating tunnel server certificate. the following items are usage:

  1. dns names and ips will be added into the yurttunnel-server certificate.
  2. ips may be used by tunnel agent to connect tunnel server

attention:

  1. when the type of x-tunnel-server-svc service is LB, make sure the first return ip is LB ip address
  2. 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 NodeListToNodes(nodeLst *corev1.NodeList) []*corev1.Node

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.

Jump to

Keyboard shortcuts

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