Documentation ¶
Index ¶
Constants ¶
View Source
const ( // constants related dnat rules configmap YurttunnelServerDnatConfigMapNs = "kube-system" YurtTunnelLocalHostProxyPorts = "localhost-proxy-ports" PortsSeparator = "," PortPairSeparator = "=" KubeletHTTPSPort = "10250" KubeletHTTPPort = "10255" MinPort = 1 MaxPort = 65535 )
Variables ¶
View Source
var ( YurttunnelServerDnatConfigMapName = fmt.Sprintf("%s-tunnel-server-cfg", strings.TrimRightFunc(projectinfo.GetProjectPrefix(), func(c rune) bool { return c == '-' })) )
Functions ¶
func GetConfiguredProxyPortsAndMappings ¶ added in v0.5.0
func GetConfiguredProxyPortsAndMappings(client clientset.Interface, insecureListenAddr, secureListenAddr string) ([]string, map[string]string, error)
GetConfiguredProxyPortsAndMappings returns the proxy ports and mappings that configured for tunnel server. field dnat-ports-pair will be deprecated in future version. it's recommended to use field http-proxy-ports and https-proxy-ports.
func RunMetaServer ¶
func RunMetaServer(addr string)
RunMetaServer start a http server for serving metrics and pprof requests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.