util

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

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.

Jump to

Keyboard shortcuts

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