This repository has been archived by the owner on Apr 25, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathvariables.tf
101 lines (78 loc) · 2.09 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
# 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" {}
# ID of internet gateway for the VPC
variable "internet_gateway_id" {}
# A list of CIDR subnet blocks to use for Kubernetes public subnets. Should be 1 per AZ.
variable "public_subnet_cidr_blocks" {
type = "list"
}
# 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
}
# Instance type for the master
variable "master_instance_type" {
default = "m4.medium"
}
# Instance type for nodes
variable "node_instance_type" {
default = "c4.xlarge"
}
# Spot node instance type
variable "spot_node_instance_type" {
default = "c4.large"
}
# 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
}
# Spot instance price, default is null
variable "max_price_spot" {
default = ""
}
# Kubernetes version tag to use
variable "kubernetes_version" {
default = "1.8.4"
}
# List of private subnet IDs. Pass 1 per AZ or if left blank then public subnets will be used
variable "private_subnet_ids" {
type = "list"
default = []
}
# kops DNS mode
variable "kops_dns_mode" {
default = "public"
}
# kops networking mode to use. Values other than flannel and calico are untested
variable "kubernetes_networking" {
default = "calico"
}
# Cloudwatch alarm CPU
variable "master_k8s_cpu_threshold" {
default = 80
}