-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
106 lines (88 loc) · 2.76 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
locals {
install_name = (var.install_name != "" ? var.install_name : var.cluster_name)
install_region = var.region
tags = merge(
var.tags,
{ nuon_id = var.nuon_id },
var.additional_tags,
)
}
variable "install_name" {
type = string
description = "The name of this install. Will be used for the EKS cluster, various tags, and other resources."
default = ""
}
variable "cluster_name" {
type = string
description = "The name of the EKS cluster. Will use the install ID by default."
default = ""
}
variable "cluster_version" {
type = string
description = "The Kubernetes version to use for the EKS cluster."
default = "1.31"
}
variable "min_size" {
type = number
default = 2
description = "The minimum number of nodes in the managed node group."
}
variable "max_size" {
type = number
default = 5
description = "The maximum number of nodes in the managed node group."
}
variable "desired_size" {
type = number
default = 2
description = "The desired number of nodes in the managed node group."
}
variable "default_instance_type" {
type = string
default = "t3a.medium"
description = "The EC2 instance type to use for the EKS cluster's default node group."
}
variable "additional_tags" {
type = map(any)
description = "Extra tags to append to the default tags that will be added to install resources."
default = {}
}
# Automatically set by Nuon when provisioned.
variable "nuon_id" {
type = string
description = "The nuon id for this install. Used for naming purposes."
}
variable "region" {
type = string
description = "The region to launch the cluster in"
}
variable "waypoint_odr_namespace" {
type = string
description = "Namespace in which the ODR IAM Role's service account presides."
}
variable "waypoint_odr_service_account_name" {
type = string
description = "Service account which the ODR IAM Role should be assumable from."
}
variable "public_root_domain" {
type = string
description = "The public root domain."
}
// NOTE: if you would like to create an internal load balancer, with TLS, you will have to use the public domain.
variable "internal_root_domain" {
type = string
description = "The internal root domain."
}
variable "tags" {
type = map(any)
description = "List of custom tags to add to the install resources. Used for taxonomic purposes."
}
variable "enable_nginx_ingress_controller" {
type = string
default = "true"
description = "Toggle the nginx-ingress controller in the EKS cluster."
}
variable "runner_install_role" {
type = string
description = "The role that is used to install the runner, and should be granted access."
}