Back to godoc.org

Package defaults

v1.8.4
Latest Go to latest

The latest major version is .

Published: Oct 1, 2020 | License: Apache-2.0 | Module: github.com/cilium/cilium

Index

Constants

const (
	AgentHealthPort = 9876

	IPv6ClusterAllocCIDR = IPv6ClusterAllocCIDRBase + "/64"

	IPv6ClusterAllocCIDRBase = "f00d::"

	RuntimePath = "/var/run/cilium"

	RuntimePathRights = 0775

	StateDirRights = 0770

	StateDir = "state"

	TemplatesDir = "templates"

	TemplatePath = "template.o"

	BpfDir = "bpf"

	LibraryPath = "/var/lib/cilium"

	SockPath = RuntimePath + "/cilium.sock"

	SockPathEnv = "CILIUM_SOCK"

	HubbleSockPath = RuntimePath + "/hubble.sock"

	HubbleSockPathEnv = "HUBBLE_SOCK"

	MonitorSockPath1_2 = RuntimePath + "/monitor1_2.sock"

	PidFilePath = RuntimePath + "/cilium.pid"

	EnableHostIPRestore = true

	DefaultMapRoot = "/sys/fs/bpf"

	DefaultCgroupRoot = "/var/run/cilium/cgroupv2"

	SockopsEnable = false

	DefaultMapRootFallback = "/run/cilium/bpffs"

	DefaultMapPrefix = "tc/globals"

	ToFQDNsMinTTL = 3600

	ToFQDNsMinTTLPoller = 600

	ToFQDNsMaxIPsPerHost = 50

	ToFQDNsMaxDeferredConnectionDeletes = 10000

	ToFQDNsPreCache = ""

	ToFQDNsEnableDNSCompression = true

	IdentityChangeGracePeriod = 5 * time.Second

	ExecTimeout = 300 * time.Second

	StatusCollectorInterval = 5 * time.Second

	StatusCollectorWarningThreshold = 15 * time.Second

	StatusCollectorFailureThreshold = 1 * time.Minute

	EnableIPv4 = true

	EnableIPv6 = true

	EnableL7Proxy = true

	EnableExternalIPs = true

	K8sEnableEndpointSlice = true

	PreAllocateMaps = true

	EnableIPSec = false

	EncryptNode = false

	MonitorQueueSizePerCPU = 1024

	MonitorQueueSizePerCPUMaximum = 16384

	NodeInitTimeout = 15 * time.Minute

	ClientConnectTimeout = 30 * time.Second

	DatapathMode = "veth"

	EnableXTSocketFallback = true

	EnableLocalNodeRoute = true

	EnableAutoDirectRouting = false

	EnableHealthChecking = true

	EnableEndpointHealthChecking = true

	EnableHealthCheckNodePort = true

	AlignCheckerName = "bpf_alignchecker.o"

	KVstorePeriodicSync = 5 * time.Minute

	KVstoreConnectivityTimeout = 2 * time.Minute

	KVStoreStaleLockTimeout = 30 * time.Second

	IPAllocationTimeout = 2 * time.Minute

	PolicyQueueSize = 100

	KVstoreQPS = 20

	EndpointQueueSize = 25

	SelectiveRegeneration = true

	K8sSyncTimeout = 3 * time.Minute

	K8sWatcherEndpointSelector = "" /* 135 byte string literal not displayed */

	ConntrackGCMaxLRUInterval = 12 * time.Hour

	ConntrackGCMaxInterval = 30 * time.Minute

	ConntrackGCMinInterval = 10 * time.Second

	ConntrackGCStartingInterval = 5 * time.Minute

	PolicyMapEntries = 16384

	K8sEventHandover = false

	LoopbackIPv4 = "169.254.42.1"

	EndpointInterfaceNamePrefix = "lxc+"

	BlacklistConflictingRoutes = true

	ForceLocalPolicyEvalAtSource = true

	EnableEndpointRoutes = false

	AnnotateK8sNode = true

	MonitorBufferPages = 64

	NodeDeleteDelay = 30 * time.Second

	KVstoreLeaseTTL = 15 * time.Minute

	KVstoreKeepAliveIntervalFactor = 3

	LockLeaseTTL = 25 * time.Second

	KVstoreLeaseMaxTTL = 86400 * time.Second

	IPAMPreAllocation = 8

	ENIFirstInterfaceIndex = 1

	ParallelAllocWorkers = 50

	IPAMAPIBurst = 4

	IPAMAPIQPSLimit = 20.0

	AutoCreateCiliumNodeResource = true

	PolicyTriggerInterval = 1 * time.Second

	K8sClientQPSLimit float32 = 0.0

	K8sClientBurst = 0

	K8sServiceCacheSize = 128

	AllowICMPFragNeeded = true

	RestoreV4Addr = "cilium.v4.internal.raw "

	RestoreV6Addr = "cilium.v6.internal.raw "

	EnableWellKnownIdentities = true

	CertsDirectory = RuntimePath + "/certs"

	EnableRemoteNodeIdentity = false

	IPAMExpiration = 10 * time.Minute

	EnableIPv4FragmentsTracking = true

	FragmentsMapEntries = 8192

	K8sEnableAPIDiscovery = false

	EnableIdentityMark = true

	K8sEnableLeasesFallbackDiscovery = false
)
const (
	// DefaultIPv4Prefix is the prefix for all the IPv4 addresses.
	// %d is substituted with the last byte of first global IPv4 address
	// configured on the system.
	DefaultIPv4Prefix = "10.%d.0.1"

	// DefaultIPv4PrefixLen is the length used to allocate container IPv4 addresses from.
	DefaultIPv4PrefixLen = 16

	// DefaultNAT46Prefix is the IPv6 prefix to represent NATed IPv4 addresses.
	DefaultNAT46Prefix = "0:0:0:0:0:FFFF::/96"

	// HostDevice is the name of the device that connects the cilium IP
	// space with the host's networking model
	HostDevice = "cilium_host"
	// SecondHostDevice is the name of the second interface of the host veth pair.
	SecondHostDevice = "cilium_net"
)
const (
	// ClusterName is the default cluster name
	ClusterName = "default"
)

Variables

var (

	// ContainerIPv6Mask is the IPv6 prefix length for address assigned to
	// container. The default is L3 only and thus /128.
	ContainerIPv6Mask = net.CIDRMask(128, 128)

	// ContainerIPv4Mask is the IPv4 prefix length for address assigned to
	// container. The default is L3 only and thus /32.
	ContainerIPv4Mask = net.CIDRMask(32, 32)

	// IPv6DefaultRoute is the default IPv6 route.
	IPv6DefaultRoute = net.IPNet{IP: net.IPv6zero, Mask: net.CIDRMask(0, 128)}

	// IPv4DefaultRoute is the default IPv4 route.
	IPv4DefaultRoute = net.IPNet{IP: net.IPv4zero, Mask: net.CIDRMask(0, 32)}
)
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier