-
Notifications
You must be signed in to change notification settings - Fork 182
/
Copy pathvar.tf
88 lines (85 loc) · 2.03 KB
/
var.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
variable "region" {}
variable "aws" {}
variable "prefix" {}
variable "tags_common" {
type = map(string)
}
variable "USER_ID" {
type = string
default = "defaultUser"
}
variable "ENV_ID" {
type = string
default = "defaultId"
}
variable "app_name" {}
variable "vpc_id" {}
variable "subnets_az" {}
# k8_version https://packages.cloud.google.com/apt/dists/kubernetes-xenial/main/binary-amd64/Packages
variable "cluster_name" { type = string }
variable "time_sleep" {
default = "30s"
}
variable "ssh_password_enable" {
default = "true"
}
variable "node_type" { type = string }
variable "k8s_master" {
type = object({
instance_type = string
ami_id = string
ubuntu_version = string
key_name = string
cidrs = list(string)
subnet_number = string
user_data_template = string
k8_version = string
runtime = string
runtime_script = string
utils_enable = string
pod_network_cidr = string
calico_url = string
task_script_url = string # url for run additional script
eip = string # true or ...
ssh = object({
private_key = string
pub_key = string
})
root_volume = object({
type = string
size = string
})
})
}
variable "k8s_worker" {
type = map(object({
instance_type = string
ami_id = string
ubuntu_version = string
key_name = string
cidrs = list(string)
subnet_number = string
user_data_template = string
k8_version = string
runtime = string
runtime_script = string
task_script_url = string # url for run additional script
node_labels = string
ssh = object({
private_key = string
pub_key = string
})
root_volume = object({
type = string
size = string
})
}))
}
variable "STACK_NAME" {
type = string
default = ""
}
variable "STACK_TASK" {
type = string
default = ""
}