-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvariables.tf
58 lines (49 loc) · 1.37 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
#####################
# General variables #
#####################
variable "api_key" {
description = "cloud.ca API key to use"
}
############################
# Infrastructure variables #
############################
variable "environment_id" {
description = "The environment ID to create resources in"
}
variable "network_id" {
description = "The network ID to create resources in"
}
#####################
# Cluster variables #
#####################
variable "kubernetes_version" {
description = "Kubernetes version to install in the cluster"
default = "v1.15.3-rancher1-1"
}
variable "node_prefix" {
description = "Prefix to be used in name of instances, e.g. `cca` in `cca-foo-service01`"
default = "cca"
}
variable "node_type" {
description = "Type to be used in name of instances, e.g. `foo` in `cca-foo-service01`"
default = "cluster"
}
variable "node_service" {
description = "Service to be used in name of instances, e.g. `service` in `cca-foo-service01`"
default = "rke"
}
variable "node_username" {
description = "The username to create in the nodes with SSH access"
default = "rke"
}
###################
# Instances count #
###################
variable "master_count" {
description = "Number of master node(s) to create"
default = 1
}
variable "worker_count" {
description = "Number of worker node(s) to create"
default = 2
}