forked from drpebcak/terraform-rancher-workload-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
216 lines (179 loc) · 4.87 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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
variable "name" {
description = "Name to identify Kubernetes cluster"
type = string
}
variable "aws_region" {
default = "us-east-1"
description = "Region to deploy AWS resources in"
type = string
}
variable "master_instance_type" {
default = "m5a.large"
description = "Instance Types for K8S Master nodes"
type = string
}
variable "master_volume_type" {
default = "gp3"
description = "Volume Type for K8S Master nodes"
type = string
}
variable "worker_instance_type" {
default = "m5a.large"
description = "Instance Types for K8S Worker nodes"
type = string
}
variable "worker_volume_type" {
default = "gp3"
description = "Volume Type for K8S Worker nodes"
type = string
}
variable "master_node_count" {
default = 3
description = "Number of Master nodes to provision"
type = number
}
variable "worker_node_count" {
default = 3
description = "Number of Worker nodes to provision"
type = number
}
variable "deploy_user_enabled" {
default = true
type = bool
description = "Define whether to give permissions for a deploy user"
}
variable "ssh_keys" {
default = ["ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN5O7k6gRYCU7YPkCH6dyXVW10izMAkDAQtQxNxdRE22 drpebcak"]
description = "Public SSH keys to give to instances"
type = list(string)
}
variable "cluster_description" {
default = "Terraform managed RKE cluster"
description = "Description of K8S clusters for Rancher"
type = string
}
variable "kubernetes_version" {
default = "v1.17.0-rancher1-2"
description = "Version of Kubernetes to install"
type = string
}
variable "cloud_provider_name" {
default = "aws"
description = "RKE Cloud Provider name to enable"
type = string
}
variable "backup_interval_hours" {
default = 6
description = "Interval between etcd backups"
type = number
}
variable "backup_retention" {
default = 12
description = "Number of etcd backups to retain"
type = number
}
variable "rancher_token_key" {
description = "API Token for Rancher Admin"
type = string
}
variable "rancher_api_url" {
description = "URL for Rancher API"
type = string
}
variable "rancher_deploy_user" {
description = "ID of Deploy user inside Rancher"
type = string
}
variable "vpc_id" {
type = string
description = "VPC ID for this cluster to be created in."
}
variable "private_subnets" {
type = list(string)
description = "A list of private subnets to create ec2 instances in"
}
variable "extra_worker_security_groups" {
default = []
type = list(string)
description = "A list of extra security groups to assign to worker nodes"
}
variable "extra_master_security_groups" {
default = []
type = list(string)
description = "A list of extra security groups to assign to master nodes"
}
variable "scheduler_extra_args" {
default = null
type = map(any)
description = "extra_args for kube-scheduler"
}
variable "kube_controller_extra_args" {
default = null
type = map(any)
description = "extra_args for kube-controller"
}
variable "kube_api_extra_args" {
default = null
type = map(any)
description = "extra_args for kube-api"
}
variable "kubelet_extra_args" {
default = null
type = map(any)
description = "extra_args for kubelet"
}
variable "master_tags" {
default = {}
type = map(any)
description = "Map of tags for master nodes to merge with defaults"
}
variable "worker_tags" {
default = {}
type = map(any)
description = "Map of tags for worker nodes to merge with defaults"
}
variable "upgrade_drain" {
default = false
type = bool
description = "Drain RKE Nodes"
}
variable "drain_delete_local_data" {
default = false
type = bool
description = "Delete local data while draining"
}
variable "upgrade_max_unavailable_worker" {
default = "10%"
type = string
description = "Number or percentage of workers that can be unavailable at the same time"
}
variable "drain_force" {
default = false
type = bool
description = "Force the drain of RKE Nodes"
}
variable "drain_timeout" {
default = 60
type = number
description = "Node drain timeout"
}
variable "ingress_provider" {
default = null
type = string
description = "Provider for ingress. Either 'nginx' or 'none'"
}
variable "cluster_cidr" {
default = null
type = string
description = "Cidr to use for overlay network"
}
variable "service_cluster_ip_range" {
default = null
type = string
description = "Cidr to use for services"
}
variable "cluster_dns_server" {
default = null
type = string
description = "IP for cluster dns service. Should be within service_cluster_ip_range"
}