forked from FutureSharks/tf-kops-cluster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
99 lines (77 loc) · 2.1 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
# Name for the cluster
variable "cluster_name" {}
# Fully qualified DNS name of cluster
variable "cluster_fqdn" {}
# ID of the VPC
variable "vpc_id" {}
# Route53 zone ID
variable "route53_zone_id" {}
# ARN of the kops bucket
variable "kops_s3_bucket_arn" {}
# ID of the kops bucket
variable "kops_s3_bucket_id" {}
# Name of the SSH key to use for cluster nodes and master
variable "instance_key_name" {}
# Security group ID to allow SSH from. Nodes and masters are added to this security group
variable "sg_allow_ssh" {}
# Security group ID to allow HTTP/S from. Master ELB is added to this security group
variable "sg_allow_http_s" {}
# IAM instance profile to use for the master
variable "master_iam_instance_profile" {}
# IAM instance profile to use for the nodes
variable "node_iam_instance_profile" {}
variable "subnet_public_ids" {
type = "list"
}
# A list of CIDR networks to use for private subnets. Should be 1 per AZ.
variable "subnet_private_ids" {
type = "list"
}
# Instance type for the master
variable "master_instance_type" {
default = "t2.small"
}
# Instance type for nodes
variable "node_instance_type" {
default = "t2.medium"
}
# Node autoscaling group min
variable "node_asg_min" {
default = 3
}
# Node autoscaling group desired
variable "node_asg_desired" {
default = 3
}
# Node autoscaling group max
variable "node_asg_max" {
default = 3
}
# Kubernetes version tag to use
variable "kubernetes" {
type = "map"
default = {
version = "1.7.2"
kubelet_sha = "bad424eee321f4c9b2b800d44de2e1789843da19"
kubectl_sha = "ce8802dccc1aa5cffa15a04eee8326ba5c911d32"
}
}
variable "kops" {
default = {
version = "1.7.1"
protokube_sha = "8f796b29894b0184bff97906d072284c8e579331"
utils_sha = "c18ca557507c662e3a072c3475da9bd1bc8a503b"
}
}
# Cloudwatch log group log retention in days
variable "cloudwatch_log_group_retention" {
default = 30
}
# kops DNS setting
variable "dns" {
default = "public"
}
# Force single master. Can be used when a master per AZ is not required or if running in a region with only 2 AZs.
variable "force_single_master" {
default = false
}