-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathvariables.tf
85 lines (71 loc) · 2.09 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
variable "enable_alibaba" {
description = "Enable / Disable Alibaba Cloud k8s (e.g. `true`)"
type = bool
default = true
}
variable "random_cluster_suffix" {
description = "Random 6 byte hex suffix for cluster name"
type = string
default = ""
}
variable "ali_region" {
description = "Alibaba Cloud region (e.g. `eu-central-1` => Frankfurt, Germany)"
type = string
default = "eu-central-1"
}
variable "ali_access_key" {
description = "Alibaba Cloud access key"
type = string
}
variable "ali_secret_key" {
description = "Alibaba Cloud secret key"
type = string
}
variable "ssh_public_key_path" {
description = "Path to your existing SSH public key file"
type = string
default = "~/.ssh/id_rsa.pub"
}
variable "ali_vpc_name" {
description = "Alibaba Cloud VPC name"
default = "k8svpc"
}
variable "ali_vpc_cidr" {
description = "Alibaba Cloud VPC CIDR block"
default = "10.0.0.0/8"
}
variable "ali_vswitch_cidrs" {
description = "List of CIDR blocks used to create several new VSwitches"
type = list(string)
default = ["10.0.1.0/24", "10.0.2.0/24"]
}
variable "ack_name" {
description = "Alibaba Managed Kubernetes cluster name (e.g. `k8s-ali`)"
type = string
default = "k8s-ali"
}
variable "ack_node_count" {
description = "Alibaba Managed Kubernetes cluster worker node count (e.g. `[2]`)"
type = number
default = 2
}
variable "ack_node_types" {
description = "Alibaba node instance types for worker nodes (e.g. `ecs.sn1.medium` => 2x vCPU 4GB memory)"
type = list(string)
default = ["ecs.sn1.medium"]
}
variable "ack_k8s_cni" {
description = "Kubernetes CNI plugin to use for networking (e.g. `flannel` or `terway`)"
type = string
default = "flannel"
}
variable "ack_k8s_pod_cidr" {
description = "CIDR for Kubernetes pod network"
type = string
default = "172.20.0.0/16"
}
variable "ack_k8s_service_cidr" {
description = "CIDR for Kubernetes service network"
type = string
default = "172.21.0.0/20"
}