forked from sguyennet/terraform-vsphere-kubespray
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
219 lines (169 loc) · 5.38 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
216
217
218
219
#====================#
# vCenter connection #
#====================#
variable "vsphere_user" {
description = "vSphere user name"
}
variable "vsphere_password" {
description = "vSphere password"
}
variable "vsphere_vcenter" {
description = "vCenter server FQDN or IP"
}
variable "vsphere_unverified_ssl" {
description = "Is the vCenter using a self signed certificate (true/false)"
}
variable "vsphere_datacenter" {
description = "vSphere datacenter"
}
variable "vsphere_drs_cluster" {
description = "vSphere cluster"
default = ""
}
variable "vsphere_resource_pool" {
description = "vSphere resource pool"
}
variable "vsphere_enable_anti_affinity" {
description = "Enable anti affinity between master VMs and between worker VMs (DRS need to be enable on the cluster)"
default = "false"
}
variable "vsphere_vcp_user" {
description = "vSphere user name for the Kubernetes vSphere Cloud Provider plugin"
}
variable "vsphere_vcp_password" {
description = "vSphere password for the Kubernetes vSphere Cloud Provider plugin"
}
variable "vsphere_vcp_datastore" {
description = "vSphere default datastore for the Kubernetes vSphere Cloud Provider plugin"
}
#===========================#
# Kubernetes infrastructure #
#===========================#
variable "action" {
description = "Which action have to be done on the cluster (create, add_worker, remove_worker, or upgrade)"
default = "create"
}
variable "worker" {
type = "list"
description = "List of worker IPs to remove"
default = [""]
}
variable "vm_user" {
description = "SSH user for the vSphere virtual machines"
}
variable "vm_password" {
description = "SSH password for the vSphere virtual machines"
}
variable "vm_privilege_password" {
description = "Sudo or su password for the vSphere virtual machines"
}
variable "vm_distro" {
description = "Linux distribution of the vSphere virtual machines (ubuntu/centos/debian/rhel)"
}
variable "vm_datastore" {
description = "Datastore used for the vSphere virtual machines"
}
variable "vm_network" {
description = "Network used for the vSphere virtual machines"
}
variable "vm_template" {
description = "Template used to create the vSphere virtual machines (linked clone)"
}
variable "vm_folder" {
description = "vSphere Virtual machines folder"
}
variable "vm_linked_clone" {
description = "Use linked clone to create the vSphere virtual machines from the template (true/false). If you would like to use the linked clone feature, your template need to have one and only one snapshot"
default = "false"
}
variable "k8s_kubespray_url" {
description = "Kubespray git repository"
default = "https://github.com/kubernetes-incubator/kubespray.git"
}
variable "k8s_kubespray_version" {
description = "Kubespray version"
default = "2.8.2"
}
variable "k8s_version" {
description = "Version of Kubernetes that will be deployed"
default = "1.12.5"
}
variable "vm_master_ips" {
type = "map"
description = "IPs used for the Kubernetes master nodes"
}
variable "vm_worker_ips" {
type = "map"
description = "IPs used for the Kubernetes worker nodes"
}
variable "vm_haproxy_vip" {
description = "IP used for the HAProxy floating VIP"
}
variable "vm_haproxy_ips" {
type = "map"
description = "IP used for two HAProxy virtual machine"
}
variable "vm_netmask" {
description = "Netmask used for the Kubernetes nodes and HAProxy (example: 24)"
}
variable "vm_gateway" {
description = "Gateway for the Kubernetes nodes"
}
variable "vm_dns" {
description = "DNS for the Kubernetes nodes"
}
variable "vm_domain" {
description = "Domain for the Kubernetes nodes"
}
variable "k8s_network_plugin" {
description = "Kubernetes network plugin (calico/canal/flannel/weave/cilium/contiv/kube-router)"
default = "flannel"
}
variable "k8s_weave_encryption_password" {
description = "Weave network encyption password "
default = ""
}
variable "k8s_dns_mode" {
description = "Which DNS to use for the internal Kubernetes cluster name resolution (example: kubedns, coredns, etc.)"
default = "coredns"
}
variable "vm_master_cpu" {
description = "Number of vCPU for the Kubernetes master virtual machines"
}
variable "vm_master_ram" {
description = "Amount of RAM for the Kubernetes master virtual machines (example: 2048)"
}
variable "vm_worker_cpu" {
description = "Number of vCPU for the Kubernetes worker virtual machines"
}
variable "vm_worker_ram" {
description = "Amount of RAM for the Kubernetes worker virtual machines (example: 2048)"
}
variable "vm_haproxy_cpu" {
description = "Number of vCPU for the HAProxy virtual machine"
}
variable "vm_haproxy_ram" {
description = "Amount of RAM for the HAProxy virtual machine (example: 1024)"
}
variable "vm_name_prefix" {
description = "Prefix for the name of the virtual machines and the hostname of the Kubernetes nodes"
}
#================#
# Redhat account #
#================#
variable "rh_subscription_server" {
description = "Address of the Redhat subscription server"
default = "subscription.rhsm.redhat.com"
}
variable "rh_unverified_ssl" {
description = "Disable the Redhat subscription server certificate verification"
default = "false"
}
variable "rh_username" {
description = "Username of your Redhat account"
default = "none"
}
variable "rh_password" {
description = "Password of your Redhat account"
default = "none"
}