-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathvariables.tf
159 lines (135 loc) · 3.41 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
variable "cluster_name" {
description = "EKS cluster name"
default = "terraform-eks-demo"
type = string
}
variable "cluster_autoscaler" {
description = "For Cluster Cluster Autoscalling"
default = true
type = bool
}
variable "metrics_server" {
description = "For Metrics Server"
default = true
type = bool
}
variable "k8s-spot-termination-handler" {
description = "For Spot Instance termination handler"
default = true
type = bool
}
variable "eks_node_group_name" {
description = "Node group name for EKS"
default = "eks-node-group"
type = string
}
variable "region" {
description = "AWS region"
default = "us-east-1"
type = string
}
variable "subnets" {
description = "A list of subnets for worker nodes"
type = list(string)
}
variable "eks_cluster_version" {
description = "Kubernetes cluster version in EKS"
type = string
}
variable "disk_size" {
description = "Disk size of workers"
type = number
default = 20
}
variable "scale_min_size" {
description = "Minimum count of workers"
type = number
default = 2
}
variable "scale_max_size" {
description = "Maximum count of workers"
type = number
default = 5
}
variable "scale_desired_size" {
description = "Desired count of workers"
type = number
default = 3
}
variable "tags" {
description = "A map of tags to add to all resources"
type = map(string)
default = {}
}
variable "config_output_path" {
description = "kubeconfig output path"
type = string
}
variable "kubeconfig_name" {
description = "Name of kubeconfig file"
type = string
}
variable "endpoint_private" {
description = "endpoint private"
type = bool
}
variable "endpoint_public" {
description = "endpoint public"
type = bool
}
variable "slackUrl" {
description = "Slack Web hook URL"
type = string
default = ""
}
variable "vpc_id" {
description = "VPC ID"
type = string
}
variable "create_node_group" {
description = "Create node group or not"
type = bool
default = true
}
variable "allow_eks_cidr" {
description = "allow eks cidr"
type = list(string)
default = ["0.0.0.0/32"]
}
variable "force_update_version" {
type = bool
description = "Force version update if existing pods are unable to be drained due to a pod disruption budget issue."
default = false
}
variable "cluster_endpoint_whitelist" {
type = bool
description = "For Wihtelist the cluster endpoint"
default = false
}
variable "cluster_endpoint_access_cidrs" {
type = list(string)
description = "For list of cidr to whitelist"
default = []
}
variable "node_groups" {
description = "Paramters which are required for creating node group"
type = map(object({
subnets = list(string)
instance_type = list(string)
disk_size = number
desired_capacity = number
max_capacity = number
min_capacity = number
ssh_key = string
security_group_ids = list(string)
tags = map(string)
labels = map(string)
capacity_type = string
ami_type = string
}))
}
variable "enabled_cluster_log_types" {
description = "List of the desired control plane logging to enable"
type = list(string)
default = ["api", "audit", "authenticator", "controllerManager", "scheduler"]
}