constants

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YurttunnelServerAgentPort           = "10262"
	YurttunnelServerMasterPort          = "10263"
	YurttunnelServerMasterInsecurePort  = "10264"
	YurttunnelServerMetaPort            = "10265"
	YurtTunnelServerNodeName            = "tunnel-server"
	YurttunnelAgentMetaPort             = "10266"
	YurttunnelServerServiceNs           = "kube-system"
	YurttunnelServerInternalServiceName = "x-tunnel-server-internal-svc"
	YurttunnelServerServiceName         = "x-tunnel-server-svc"
	YurttunnelServerAgentPortName       = "tcp"
	YurttunnelServerExternalAddrKey     = "x-tunnel-server-external-addr"
	YurttunnelEndpointsNs               = "kube-system"
	YurttunnelEndpointsName             = "x-tunnel-server-svc"
	YurttunnelDNSRecordConfigMapNs      = "kube-system"
	YurttunnelDNSRecordConfigMapName    = "%s-tunnel-nodes"
	YurttunnelDNSRecordNodeDataKey      = "tunnel-nodes"
	YurtTunnelProxyClientCSRCN          = "tunnel-proxy-client"
	YurtTunnelCSROrg                    = "openyurt:yurttunnel"
	YurtTunnelAgentCSRCN                = "tunnel-agent-client"

	// yurttunnel PKI related constants
	YurttunnelCAFile                 = "/var/run/secrets/kubernetes.io/serviceaccount/ca.crt"
	YurttunnelTokenFile              = "/var/run/secrets/kubernetes.io/serviceaccount/token"
	YurttunnelServerCertDir          = "/var/lib/%s/pki"
	YurttunnelAgentCertDir           = "/var/lib/%s/pki"
	YurttunnelCSRApproverThreadiness = 2

	// name of the environment variables used in pod
	YurttunnelAgentPodIPEnv = "POD_IP"

	// name of the environment for selecting backend agent used in yurt-tunnel-server
	NodeIPKeyIndex     = "status.internalIP"
	ProxyHostHeaderKey = "X-Tunnel-Proxy-Host"
	ProxyDestHeaderKey = "X-Tunnel-Proxy-Dest"

	// The timeout seconds of reading a complete request from the apiserver
	YurttunnelANPInterceptorReadTimeoutSec = 10
	// The period between two keep-alive probes
	YurttunnelANPInterceptorKeepAlivePeriodSec = 10
	// The timeout seconds for the interceptor to proceed a complete read from the proxier
	YurttunnelANPProxierReadTimeoutSec = 10
	// probe the client every 10 seconds to ensure the connection is still active
	YurttunnelANPGrpcKeepAliveTimeSec = 10
	// wait 5 seconds for the probe ack before cutting the connection
	YurttunnelANPGrpcKeepAliveTimeoutSec = 5
	UnixListenerNetwork                  = "unix"
)
View Source
const (
	HttpsPrfix = "https://"
)

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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