consts.go 1.43 KB
Newer Older
1
2
package consts

3
4
import "time"

5
6
7
8
9
10
const (
	HPACPUDefaultAverageUtilization = 80

	DefaultUserId = "default"
	DefaultOrgId  = "default"

11
	DynamoServicePort       = 8000
12
13
	DynamoServicePortName   = "http"
	DynamoContainerPortName = "http"
14

15
16
	DynamoSystemPort     = 9090
	DynamoSystemPortName = "system"
17

18
	EnvDynamoServicePort = "DYNAMO_PORT"
19

20
21
	KubeLabelDynamoSelector = "nvidia.com/selector"

22
23
	KubeAnnotationEnableGrove = "nvidia.com/enable-grove"

24
	KubeLabelDynamoComponent            = "nvidia.com/dynamo-component"
25
	KubeLabelDynamoNamespace            = "nvidia.com/dynamo-namespace"
26
	KubeLabelDynamoDeploymentTargetType = "nvidia.com/dynamo-deployment-target-type"
27
	KubeLabelDynamoComponentType        = "nvidia.com/dynamo-component-type"
28

29
30
31
	KubeLabelValueFalse = "false"
	KubeLabelValueTrue  = "true"

32
	KubeLabelDynamoComponentPod = "nvidia.com/dynamo-component-pod"
33
34
35

	KubeResourceGPUNvidia = "nvidia.com/gpu"

36
	DynamoDeploymentConfigEnvVar = "DYN_DEPLOYMENT_CONFIG"
37

38
39
	ComponentTypePlanner      = "planner"
	ComponentTypeMain         = "main"
40
	ComponentTypeWorker       = "worker"
41
	PlannerServiceAccountName = "planner-serviceaccount"
42
43

	DefaultIngressSuffix = "local"
44
45

	DefaultGroveTerminationDelay = 15 * time.Minute
46
47
48
49

	// Metrics related constants
	KubeAnnotationEnableMetrics = "nvidia.com/enable-metrics"  // User-provided annotation to control metrics
	KubeLabelMetricsEnabled     = "nvidia.com/metrics-enabled" // Controller-managed label for pod selection
50
)