-
Notifications
You must be signed in to change notification settings - Fork 5
/
variables.tf
145 lines (128 loc) · 3.47 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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
variable "cluster_name" {
description = "Name of the cluster"
type = string
}
variable "cluster_version" {
description = "Version of the cluster"
type = string
}
variable "cluster_desc" {
description = "Description of the cluster"
type = string
}
variable "cluster_type" {
description = "Cluster Type, possible values are VirtualMachine and BareMetal"
type = string
default = "VirtualMachine"
}
variable "cluster_eip" {
description = "EIP of the cluster"
type = string
default = null
}
variable "container_network_type" {
description = "Network type of the container"
type = string
default = "overlay_l2"
}
variable "availability_zone" {
description = "Availability Zone used to deploy"
default = "eu-west-0a"
type = string
}
# CCE2 vars
variable "cluster_flavor" {
description = "Flavor of the CCE2 Cluster"
type = string
#o cce.s1.large : no HA > 1000nodes
#o cce.s1.medium : no HA 50 à 200 nodes
#o cce.s1.small : no HA up to 50 nodes
#o cce.s2.large : HA > 1000nodes
#o cce.s2.medium : HA 50 à 200 nodes
#o cce.s2.small : HA up to 50 nodes
}
variable "vpc_id" {
description = "ID of the VPC"
type = string
}
variable "network_id" {
description = "ID of the Network"
type = string
}
variable "node_os" {
description = "Operating System of the CCE Worker Node"
type = string
}
variable "node_runtime" {
description = "Runtime of the CCE Worker Node. Valid values are docker and containerd."
type = string
default = "containerd"
}
variable "key_pair" {
description = "Name of the SSH key pair"
type = string
}
variable "annotations" {
description = "Cluster annotation, key/value pair format"
type = map(string)
default = {}
}
variable "extend_param" {
description = "Extended Parameters"
type = map(string)
default = {}
}
variable "nodes_list" {
description = "Nodes list of the CCE2 Cluster"
default = []
type = list(object({
node_index = string
node_name = string
node_flavor = string
availability_zone = string
root_volume_size = number
root_volume_type = string
data_volume_size = number
data_volume_type = string
node_labels = map(string)
vm_tags = map(string)
taints = list(object({
key = string
value = string
effect = string
}))
postinstall_script = string
preinstall_script = string
annotations = map(string)
}))
}
variable "node_pool_list" {
description = "Nodes poool list of the CCE2 Cluster"
default = []
type = list(object({
node_pool_index = string
node_pool_name = string
node_flavor = string
availability_zone = string
initial_node_count = number
scale_enable = bool
min_node_count = number
max_node_count = number
scale_down_cooldown_time = number
priority = number
root_volume_size = number
root_volume_type = string
type = string
data_volume_size = number
data_volume_type = string
node_labels = map(string)
taints = list(object({
key = string
value = string
effect = string
}))
vm_tags = map(string)
postinstall_script = string
preinstall_script = string
}))
}