You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: variables.tf
+33-3Lines changed: 33 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1,15 +1,18 @@
1
1
//Autoscaling group
2
2
variable"region" {
3
3
description="The region ID used to launch this module resources. If not set, it will be sourced from followed by ALICLOUD_REGION environment variable and profile."
4
+
type=string
4
5
default=""
5
6
}
6
7
7
8
variable"profile" {
8
9
description="The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable."
10
+
type=string
9
11
default=""
10
12
}
11
13
variable"shared_credentials_file" {
12
14
description="This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used."
15
+
type=string
13
16
default=""
14
17
}
15
18
@@ -28,6 +31,7 @@ variable "new_vpc" {
28
31
29
32
variable"vpc_cidr" {
30
33
description="The cidr block used to launch a new vpc."
34
+
type=string
31
35
default="192.168.0.0/16"
32
36
}
33
37
@@ -52,6 +56,7 @@ variable "availability_zones" {
52
56
53
57
variable"new_eip_bandwidth" {
54
58
description="The bandwidth used to create a new EIP when 'new_vpc' is true."
59
+
type=number
55
60
default=50
56
61
}
57
62
variable"new_nat_gateway" {
@@ -62,82 +67,107 @@ variable "new_nat_gateway" {
62
67
# Cluster nodes variables
63
68
variable"cpu_core_count" {
64
69
description="CPU core count is used to fetch instance types."
70
+
type=number
65
71
default=1
66
72
}
67
73
68
74
variable"memory_size" {
69
75
description="Memory size used to fetch instance types."
76
+
type=number
70
77
default=2
71
78
}
79
+
72
80
variable"worker_instance_types" {
73
81
description="The ecs instance type used to launch worker nodes. If not set, data source `alicloud_instance_types` will return one based on `cpu_core_count` and `memory_size`."
74
82
type=list(string)
75
83
default=["ecs.n4.xlarge"]
76
84
}
77
85
86
+
variable"cluster_addons" {
87
+
description="Addon components in kubernetes cluster"
88
+
type=list(object({
89
+
name =string
90
+
config =string
91
+
}))
92
+
default=[]
93
+
}
94
+
78
95
variable"worker_disk_category" {
79
96
description="The system disk category used to launch one or more worker nodes."
97
+
type=string
80
98
default="cloud_efficiency"
81
99
}
82
100
83
101
variable"worker_disk_size" {
84
102
description="The system disk size used to launch one or more worker nodes."
103
+
type=number
85
104
default=40
86
105
}
87
106
88
107
variable"ecs_password" {
89
108
description="The password of worker nodes."
109
+
type=string
90
110
default="Abc12345"
91
111
}
92
112
93
113
variable"worker_number" {
94
114
description="The number of kubernetes cluster work nodes."
115
+
type=number
95
116
default=2
96
117
}
97
118
98
119
variable"k8s_name_prefix" {
99
120
description="The name prefix used to create managed kubernetes cluster."
121
+
type=string
100
122
default="terraform-alicloud-managed-kubernetes"
101
123
}
102
124
103
125
variable"k8s_pod_cidr" {
104
126
description="The kubernetes pod cidr block. It cannot be equals to vpc's or vswitch's and cannot be in them. If vpc's cidr block is `172.16.XX.XX/XX`, it had better to `192.168.XX.XX/XX` or `10.XX.XX.XX/XX`."
127
+
type=string
105
128
default="172.20.0.0/16"
106
129
}
107
130
108
131
variable"k8s_service_cidr" {
109
132
description="The kubernetes service cidr block. It cannot be equals to vpc's or vswitch's or pod's and cannot be in them. Its setting rule is same as `k8s_pod_cidr`."
133
+
type=string
110
134
default="172.21.0.0/20"
111
135
}
112
136
113
137
variable"cluster_network_type" {
114
-
description="Network type, valid options are `flannel` and `terway`."
138
+
description="(Deprecated from v1.3.0, use 'cluster_addons' instead)Network type, valid options are `flannel` and `terway`."
139
+
type=string
115
140
default="flannel"
116
141
}
117
142
118
143
variable"new_sls_project" {
119
-
description="Create a new sls project for this module."
144
+
description="(Deprecated from v1.3.0, use 'cluster_addons' instead)Create a new sls project for this module."
120
145
type=bool
121
146
default=false
122
147
}
123
148
variable"sls_project_name" {
124
-
description="Specify a existing sls project for this module."
149
+
description="(Deprecated from v1.3.0, use 'cluster_addons' instead)Specify a existing sls project for this module."
150
+
type=string
125
151
default=""
126
152
}
127
153
128
154
variable"kube_config_path" {
129
155
description="The path of kube config, like ~/.kube/config"
156
+
type=string
130
157
default=""
131
158
}
132
159
variable"client_cert_path" {
133
160
description="The path of client certificate, like ~/.kube/client-cert.pem"
161
+
type=string
134
162
default=""
135
163
}
136
164
variable"client_key_path" {
137
165
description="The path of client key, like ~/.kube/client-key.pem"
166
+
type=string
138
167
default=""
139
168
}
140
169
variable"cluster_ca_cert_path" {
141
170
description="The path of cluster ca certificate, like ~/.kube/cluster-ca-cert.pem"
0 commit comments