-
Notifications
You must be signed in to change notification settings - Fork 39
/
variables.tf
80 lines (66 loc) · 1.72 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
#
# Variables Configuration
#
variable "aws_region" {
description = "The AWS region to create things in."
default = "eu-west-1"
}
variable "cluster-name" {
description = "EKS cluster name."
default = "demo"
type = string
}
variable "k8s_version" {
description = "Kubernetes version."
default = "1.17"
type = string
}
# Assumption; vpc is n.n.h.h/16; eg first 2 octets.
# Subnets for vpc's use tf counts and will increment the 3rd octet and set the subnet to /24 (eg n.n.0.h/24)
# See also vpc_subnets
variable "vpc-network" {
description = "vpc cidr network portion; eg 10.0 for 10.0.0.0/16."
default = "10.0"
type = string
}
variable "vpc-subnets" {
description = "vpc number of subnets/az's."
default = "3"
type = string
}
variable "inst-type" {
description = "EKS worker instance type."
default = "m5.large"
type = string
}
# I bumped this up as 20Gb is way to small for all those docker images that will be pulled.
variable "inst_disk_size" {
description = "EKS worker instance disk size in Gb."
default = "60"
type = string
}
variable "inst_key_pair" {
description = "EKS worker instance ssh key pair."
default = "spicysomtam-aws4"
type = string
}
variable "num-workers" {
description = "Number of eks worker instances to deploy."
default = "3"
type = string
}
variable "max-workers" {
description = "Max number of eks worker instances that can be scaled."
default = "10"
type = string
}
variable "cw_logs" {
type = bool
default = false
description = "Setup full Cloudwatch logging."
}
variable "ca" {
type = bool
default = false
description = "Install k8s Cluster Autoscaler."
}