-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path20_varInitContainers.tf
81 lines (75 loc) · 2.6 KB
/
20_varInitContainers.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
variable "initContainers" {
type = map(object({
image = string
imagePullPolicy = optional(string, "IfNotPresent")
stdin = optional(bool, false)
stdinOnce = optional(bool, false)
terminationMessagePath = optional(string, null)
terminationMessagePolicy = optional(string, null)
tty = optional(bool, false)
workingDir = optional(string, "")
securityContext = optional(object({
allowPrivilegeEscalation = optional(bool, false)
capabilities = optional(object({
add = optional(list(string), null)
drop = optional(list(string), null)
}), {})
readOnlyRootFilesystem = optional(bool, false)
privileged = optional(bool, false)
runAsGroup = optional(string, null)
runAsNonRoot = optional(bool, null)
runAsUser = optional(string, null)
}), {})
args = optional(list(string), [])
resources = optional(map(object({
requests = optional(object({
cpu = optional(string, "1m")
memory = optional(string, "1Mi")
}), {})
limits = optional(object({
cpu = optional(string, null)
memory = optional(string, null)
}), {})
})), { default = {}})
customCommand = optional(object({
enabled = bool
data = string
}), { enabled = false, data = ""})
preStop = optional(object({
exec = optional(object({
enabled = bool
command = list(string)
}), { enabled = false, command = []})
httpGet = optional(object({
enabled = bool
path = optional(string, "/")
port = string
host = optional(string, "")
scheme = optional(string, "HTTP")
header = optional(map(string), {})
}), { enabled = false, port = null})
tcpSocket = optional(object({
enabled = bool
port = string
}), { enabled = false, port = null})
}), {})
postStart = optional(object({
exec = optional(object({
enabled = bool
command = list(string)
}), { enabled = false, command = []})
httpGet = optional(object({
enabled = bool
path = optional(string, "/")
port = string
host = optional(string, "")
scheme = optional(string, "HTTP")
header = optional(map(string), {})
}), { enabled = false, port = null})
tcpSocket = optional(object({
enabled = bool
port = string
}), { enabled = false, port = null})
}), {})
}))
}