Documentation
¶
Index ¶
Constants ¶
View Source
const ( // configmap name ConfigMapPodTrafficManager = "kubevpn-traffic-manager" // config map keys KeyDHCP = "DHCP" KeyEnvoy = "ENVOY_CONFIG" KeyClusterIPv4POOLS = "IPv4_POOLS" KeyRefCount = "REF_COUNT" // container name ContainerSidecarEnvoyProxy = "envoy-proxy" ContainerSidecarControlPlane = "control-plane" ContainerSidecarVPN = "vpn" VolumeEnvoyConfig = "envoy-config" DefaultNetDir = "/etc/cni/net.d" Proc = "/proc" CniNetName = "cni-net-dir-kubevpn" // env name EnvTunNameOrLUID = "TunNameOrLUID" EnvInboundPodTunIP = "InboundPodTunIP" )
Variables ¶
View Source
var ( SmallBufferSize = 2 * 1024 // 2KB small buffer MediumBufferSize = 8 * 1024 // 8KB medium buffer LargeBufferSize = 32 * 1024 // 32KB large buffer )
View Source
var ( KeepAliveTime = 180 * time.Second DialTimeout = 15 * time.Second HandshakeTimeout = 5 * time.Second ConnectTimeout = 5 * time.Second ReadTimeout = 10 * time.Second WriteTimeout = 10 * time.Second )
View Source
var CIDR *net.IPNet
View Source
var Debug bool
View Source
var ( // network layer ip needs 20 bytes // transport layer UDP header needs 8 bytes // UDP over TCP header needs 22 bytes DefaultMTU = 1500 - 20 - 8 - 21 )
View Source
var (
// Image inject --ldflags -X
Image = "docker.io/naison/kubevpn:latest"
)
View Source
var RouterIP net.IP
View Source
var TlsConfigClient *tls.Config
View Source
var TlsConfigServer *tls.Config
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.