-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
75 lines (63 loc) · 1.96 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
variable "name" {
type = string
description = "name of the k8s deployment for this challenge"
}
variable "challenge_path" {
type = string
description = "path to the challenge source code, which must contain a Dockerfile"
}
variable "docker_registry" {
type = string
description = "the docker registry to push images to (kubernetes must also have access to this)"
default = ""
}
variable "jail_type" {
type = string
description = "the type of jail that will be used for this challenge (see README)"
default = "forking"
}
variable "port" {
type = string
description = "external k8s port to expose for the service (default: 22 for tunnelling, 1337 otherwise)"
default = null
}
variable "time_limit" {
type = number
description = "number of wall seconds the connection may stay open (default: 2 hours for tunnelling, 10 minutes otherwise)"
default = null
}
variable "memory_limit" {
type = number
description = "number of MB of memory the connection may consume (default: 1024)"
default = 1024
}
variable "pid_limit" {
type = number
description = "number of processes the connection may open (default: 5)"
default = 5
}
variable "min_replicas" {
type = number
description = "the minimum number of pod replicas to spin up for this challenge"
default = 1
}
variable "max_replicas" {
type = number
description = "the maximum number of pod replicas to spin up for this challenge"
default = 1
}
variable "target_utilization" {
type = number
description = "cpu utilization percentage to target for horizontal pod autoscaling"
default = 60
}
variable "healthcheck" {
type = bool
description = "if true, will deploy a liveliness probe based on challenge_path/healthcheck.py"
default = false
}
variable "healthcheck_additional_requirements" {
type = string
description = "additional python requirements to install in the healthcheck image"
default = ""
}