constants

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	YurttunnelServerAgentPort           = "10262"
	YurttunnelServerMasterPort          = "10263"
	YurttunnelServerMasterInsecurePort  = "10264"
	YurttunnelServerMetaPort            = "10265"
	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"

	// yurttunnel PKI related constants
	YurttunnelCSROrg                 = "openyurt:yurttunnel"
	YurttunnelAgentCSRCN             = "yurttunnel-agent"
	YurttunneServerCSROrg            = "system:masters"
	YurttunneServerCSRCN             = "kube-apiserver-kubelet-client"
	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
	ProxyHostHeaderKey = "X-Tunnel-Proxy-Host"

	// 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
)

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