-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathvariable.tf
More file actions
177 lines (146 loc) · 3.12 KB
/
variable.tf
File metadata and controls
177 lines (146 loc) · 3.12 KB
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
# SPDX-FileCopyrightText: 2025 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
variable "cluster_name" {
type = string
}
variable "aws_account_number" {
type = string
}
variable "aws_region" {
type = string
}
variable "vpc_id" {
type = string
}
variable "subnets" {
type = list(any)
}
variable "ip_allow_list" {
type = list(string)
default = []
}
variable "eks_node_ami_id" {
type = string
default = "ami-0d3aa1878940d0eed"
}
variable "volume_size" {
type = number
default = 120
}
variable "volume_type" {
type = string
default = "gp3"
}
variable "eks_node_instance_type" {
type = string
default = "t3.2xlarge"
}
variable "desired_size" {
type = number
default = 1
}
variable "min_size" {
type = number
default = 1
}
variable "max_size" {
type = number
default = 1
}
variable "addons" {
type = list(object({
name = string
version = string
configuration_values = optional(string, "")
}))
}
variable "eks_version" {
type = string
// Use latest if not set
default = "1.34"
}
variable "max_pods" {
type = number
default = 60
}
variable "aws_lb_controller_iam" {
type = string
default = "aws_load_balancer_controller"
}
variable "public_cloud" {
type = bool
default = false
}
variable "enable_cache_registry" {
type = string
default = "false"
}
variable "cache_registry" {
type = string
default = ""
}
variable "additional_iam_policies" {
type = map(string)
default = {}
}
variable "additional_node_groups" {
type = map(object({
desired_size : number
min_size : number
max_size : number
taints : map(object({
value : string
effect : string # one of "NO_SCHEDULE", "NO_EXECUTE", "PREFER_NO_SCHEDULE"
}))
labels : map(string)
instance_type : string
volume_size : number
volume_type : string
subnet_ids : optional(list(string), null) # pin to specific subnets/AZ to match existing EBS PV affinity
}))
default = {}
}
variable "cas_namespace" {
description = "The Kubernetes namespace for cluster autoscaler"
default = "kube-system"
}
variable "cas_service_account" {
description = "The Kubernetes service account name of cluster autoscaler"
default = "cluster-autoscaler"
}
variable "customer_tag" {
description = "For customers to specify a tag for AWS resources"
type = string
default = ""
}
variable "user_script_pre_cloud_init" {
type = string
default = ""
description = "Script to run before cloud-init"
}
variable "user_script_post_cloud_init" {
type = string
default = ""
description = "Script to run after cloud-init"
}
variable "http_proxy" {
type = string
default = ""
description = "HTTP proxy to use for EKS nodes"
}
variable "https_proxy" {
type = string
default = ""
description = "HTTPS proxy to use for EKS nodes"
}
variable "no_proxy" {
type = string
default = ""
description = "No proxy to use for EKS nodes"
}
variable "eks_cluster_dns_ip" {
type = string
default = ""
description = "IP address of the DNS server for the cluster, leave empty to use the default DNS server"
}