consts

package
v0.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CortexVersion      = "0.42.1" // CORTEX_VERSION
	CortexVersionMinor = "0.42"   // CORTEX_VERSION_MINOR

	DefaultNamespace    = "default"
	KubeSystemNamespace = "kube-system"
	IstioNamespace      = "istio-system"
	PrometheusNamespace = "prometheus"
	LoggingNamespace    = "logging"

	DefaultMaxQueueLength = int64(100)
	DefaultMaxConcurrency = int64(1)

	DefaultUserPodPortInt32 = int32(8080)

	ProxyPortStr   = "8888"
	ProxyPortInt32 = int32(8888)

	ActivatorName      = "activator"
	ActivatorPortInt32 = int32(8000)

	AdminPortName  = "admin"
	AdminPortStr   = "15000"
	AdminPortInt32 = int32(15000)

	AuthHeader = "X-Cortex-Authorization"

	CortexProxyCPU    = kresource.MustParse("100m")
	CortexProxyMem    = kresource.MustParse("100Mi")
	CortexDequeuerCPU = kresource.MustParse("100m")
	CortexDequeuerMem = kresource.MustParse("100Mi")

	/*
		CPU Pod Reservations:
		- FluentBit 100
		- NodeExporter 50 (it has two containers)
		- KubeProxy 100
		- AWS cni 10
	*/
	CortexCPUPodReserved = kresource.MustParse("260m")
	/*
		CPU Node Reservations:
		- Reserved (150 + 150) see generate_eks.py for details
	*/
	CortexCPUK8sReserved = kresource.MustParse("300m")

	/*
		Memory Pod Reservations:
		- FluentBit 150
		- NodeExporter 200 (it has two containers)
	*/
	CortexMemPodReserved = kresource.MustParse("350Mi")
	/*
		Memory Node Reservations:
		- Reserved (300 + 300 + 200) see generate_eks.py for details
	*/
	CortexMemK8sReserved = kresource.MustParse("800Mi")

	DefaultInClusterConfigPath   = "/configs/cluster/cluster.yaml"
	MaxBucketLifecycleRules      = 100
	AsyncWorkloadsExpirationDays = int64(7)

	ReservedContainerPorts = []int32{
		ProxyPortInt32,
		AdminPortInt32,
	}
	ReservedContainerNames = []string{
		"dequeuer",
		"proxy",
	}

	UserAgentKey             = "User-Agent"
	KubeProbeUserAgentPrefix = "kube-probe/"

	CortexAPINameHeader       = "X-Cortex-API-Name"
	CortexTargetServiceHeader = "X-Cortex-Target-Service"
	CortexProbeHeader         = "X-Cortex-Probe"
	CortexOriginHeader        = "X-Cortex-Origin"
	CortexQueueURLHeader      = "X-Cortex-Queue-URL"

	WaitForReadyReplicasTimeout = 20 * time.Minute
)

Functions

func DefaultRegistry added in v0.33.0

func DefaultRegistry() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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