-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
112 lines (92 loc) · 3.49 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
variable "google_cloud_project_id" {
type = string
description = "The ID of the google cloud project to deploy resources in."
}
variable "google_cloud_region" {
type = string
description = "The google cloud region to deploy resources in."
}
variable "maintainer_service_account_names" {
type = set(string)
default = ["default"]
description = "The names of the maintainer IAM service accounts (without the 'maintainer-' prefix)."
}
variable "environment" {
type = string
default = "main"
description = "The name of the environment to deploy the resources in (must be one word with no hyphens or underscores in). This can be derived from a Terraform workspace name and used to facilitate e.g. testing and staging environments alongside the production environment ('main')."
}
variable "maximum_event_handler_instances" {
type = number
default = 100
description = "The maximum number of instances to allow to be spun up simultaneously for the event handler. Each instance can handle one event at a time."
}
variable "maximum_service_registry_instances" {
type = number
default = 10
description = "The maximum number of instances to allow to be spun up simultaneously for the service registry. Each instance can handle one request at a time."
}
variable "deletion_protection" {
type = bool
default = true
description = "If `true`, disallow deletion of the Kubernetes cluster. `terraform apply` must be run after setting this to `false` before `terraform destroy` will be able to destroy the cluster."
}
variable "kueue_version" {
type = string
default = "v0.10.1"
description = "The version of Kueue to install on the Kubernetes cluster. Any release from https://github.com/kubernetes-sigs/kueue/releases with a `manifests.yaml` artifact can be used."
}
variable "question_default_resources" {
type = object(
{
cpus = number
memory = string
ephemeral_storage = string
}
)
default = {
cpus = 1
memory = "512Mi"
ephemeral_storage = "1Gi"
}
description = <<EOT
cpus: the number of CPUs to allocate each question by default
memory: the amount of memory to allocate each question by default e.g. "500Mi" or "4Gi"
ephemeral_storage: the amount of ephemeral storage to allocate each question by default e.g. "500Mi" or "4Gi"
EOT
}
variable "cluster_queue" {
type = object(
{
name = string
max_cpus = number
max_memory = string
max_ephemeral_storage = string
}
)
default = {
name = "cluster-queue"
max_cpus = 10
max_memory = "10Gi"
max_ephemeral_storage = "10Gi"
}
description = <<EOT
name: the name to give the cluster queue
max_cpus: the maximum number of CPUs the cluster queue can allocate to all questions running simultaneously on the cluster
max_memory: the maximum amount of memory the cluster queue can allocate to all questions running simultaneously on the cluster e.g. "500Mi" or "4Gi"
max_ephemeral_storage: the maximum amount of ephemeral storage the cluster queue can allocate to all questions running simultaneously on the cluster e.g. "500Mi" or "4Gi"
EOT
}
variable "local_queue" {
type = object(
{
name = string
}
)
default = {
name = "local-queue"
}
description = <<EOT
name: the name to give the local queue
EOT
}