This repository has been archived by the owner on Apr 2, 2021. It is now read-only.
/
variables.tf
163 lines (134 loc) · 4.08 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
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
/*
Copyright (c) 2016, UPMC Enterprises
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name UPMC Enterprises nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL UPMC ENTERPRISES BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PR)
OCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
*/
variable "ssh-key-name" {
}
variable "cluster-name" {
}
variable "aws-access-key-id" {
// If empty, IAM will be used.
default = ""
}
variable "aws-secret-access-key" {
// If empty, IAM will be used.
default = ""
}
variable "itzo-url" {
// The URL to download the node agent from.
default = "http://itzo-download.s3.amazonaws.com"
}
variable "itzo-version" {
// The version of node agent to use.
default = "latest"
}
variable "default-instance-type" {
// This this the default cloud instance type. Pods that don't specify their
// cpu and memory requirements will be launched on this instance type.
// Example: "t3.nano".
default = "t3.nano"
}
variable "default-volume-size" {
// This this the default volume size used on the cloud instance. Example: "15Gi".
default = "10Gi"
}
variable "boot-image-tags" {
// This is a JSON dictionary of key-value pairs, describing the image tags
// Milpa will use when finding the AMI to launch cloud instances with. Only
// change it when you know what you are doing.
default = {
"company" = "elotl"
"product" = "milpa"
}
}
variable "license-key" {
default = ""
}
variable "license-id" {
default = ""
}
variable "license-username" {
default = ""
}
variable "license-password" {
default = ""
}
variable "region" {
default = "us-east-1"
}
variable "master-userdata" {
default = "master.sh"
}
variable "milpa-worker-userdata" {
default = "milpa-worker.sh"
}
variable "vpc-cidr" {
default = "10.0.0.0/16"
}
variable "pod-cidr" {
default = "172.20.0.0/16"
}
variable "service-cidr" {
default = "10.96.0.0/12"
}
variable "milpa-workers" {
// Number of Milpa workers to create in the cluster.
default = 1
}
variable "number-of-subnets" {
// Number of subnets to create in the VPC. Workers and Milpa pods will be
// created in a random subnet.
default = 3
}
variable "k8s-version" {
// You can specify a specific version, for example "1.13.5", or "" for
// using the latest version available. Don't include a trailing asterisk
// that is appended by the install scripts.
default = ""
}
variable "worker-disk-size" {
// Size of the root device volume in GB on the workers.
default = 15
}
variable "blacklisted-azs" {
// Blacklist certain AZs to prevent capacity problems.
// For example, in our account us-east-1e doesn't support nitro instances
// which creates problems for us.
type = list(string)
default = ["use1-az3"]
}
variable "milpa-image" {
default = "elotl/milpa"
}
variable "milpa-worker-ami" {
default = ""
}
variable "network-plugin" {
default = "kubenet"
}
variable "configure-cloud-routes" {
default = "true"
}
variable "ecs-cluster-name" {
default = ""
}