-
Notifications
You must be signed in to change notification settings - Fork 2
/
variables.tf
56 lines (52 loc) · 1.4 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
variable "network_name" {
description = "Name to be used on all the resources as identifier"
type = string
}
variable "network_description" {
description = "An optional description of this resource. Provide this property when you create the resource."
type = string
default = "Auto-created"
}
variable "subnets" {
description = "An optional description of this resource. Provide this property when you create the resource."
type = list(object({
zone = string
v4_cidr_blocks = list(string)
}))
default = [
{
zone = "ru-central1-a"
v4_cidr_blocks = ["10.110.0.0/16"]
},
{
zone = "ru-central1-b"
v4_cidr_blocks = ["10.120.0.0/16"]
},
{
zone = "ru-central1-c"
v4_cidr_blocks = ["10.130.0.0/16"]
}
]
}
variable "k8s_service_ipv4_range" {
type = string
default = "10.150.0.0/16"
description = "CIDR for k8s services"
}
variable "k8s_pod_ipv4_range" {
type = string
default = "10.140.0.0/16"
description = "CIDR for pods in k8s cluster"
}
variable "k8s_whitelist" {
type = list(any)
default = ["0.0.0.0/0"]
description = "Range of ip-addresses which can access cluster API with kubectl etc"
}
variable "labels" {
description = "A set of key/value label pairs to assign."
type = map(string)
default = {
demo = "k8s"
}
}