-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariables.tf
179 lines (146 loc) · 3.94 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
variable "gcp_region" {
description = "Google Cloud Platform region"
}
variable "gcp_project_id" {
description = "Google Cloud Platform project"
}
variable "gcp_credentials" {
description = "Google Cloud Platform service credential json"
}
variable "cluster_location" {
description = "Google Kubernetes Engine cluster location"
}
variable "cluster_name" {
description = "Google Kubernetes Engine cluster name"
}
variable "istio_disabled" { default = true }
variable "cloudrun_disabled" { default = true }
variable "flux_enabled" { default = true }
variable "config_connector_config_enabled" { default = false }
variable "additional_oauth_scopes" {
type = list(string)
default = []
}
variable "default_node_pool" {
type = object({
enabled = bool,
initial_node_count = number
min_node = number
max_node = number
max_surge = number
max_unavailable = number
auto_repair = bool
auto_upgrade = bool
preemptible_nodes = bool
machine_type = string
})
default = {
enabled = true
initial_node_count = 1
min_node = 1
max_node = 1
max_surge = 1
max_unavailable = 0
auto_repair = true
auto_upgrade = true
preemptible_nodes = true
machine_type = "e2-standard-2"
}
}
variable "enable_vertical_pod_autoscaling" {
default = false
}
variable "cluster_autoscaling" {
type = object({
enabled = bool
autoscaling_profile = string
cpu_min = number
cpu_max = number
ram_min = number
ram_max = number
})
default = {
enabled = false
autoscaling_profile = "BALANCED"
cpu_min = 1
cpu_max = 4
ram_min = 1
ram_max = 8
}
}
variable "flux_path" {
description = "Flux base path related to repository root (i.e. 'k8s/')."
}
variable "parent_dns_zone_name" {
description = "Parent dns zone name"
}
variable "dns_name" {
description = "Managed dns to create, will be relative to parent_dns_zone_name, if not specified cluster_name will be used"
default = ""
}
variable "daily_maintenance_window_time" {
default = "02:00"
}
variable "min_master_version" {
default = ""
}
variable "flux_garbage_collection_enabled" {
default = "false"
}
variable flux_git_timeout {
default = "5m"
}
variable flux_git_poll_interval {
default = "1m"
}
# Flux cloud
variable "fluxcloud_enabled" {
default = false
description = "Enable fluxcloud installation on GKE clkuster"
}
variable "fluxcloud_slack_url" {
description = "Slack webhook URL to use"
default = ""
}
variable "fluxcloud_slack_channel" {
description = "Slack channel to send messages to"
default = "#kubernetes"
}
variable "fluxcloud_slack_username" {
description = "Slack username to use when sending messages"
default = "fluxcloud"
}
variable "fluxcloud_github_url" {
description = "URL to the Github repository that Flux uses, used for Slack links"
default = ""
}
variable "fluxcloud_slack_icon_emoji" {
description = "Slack emoji to use as the icon"
default = ":arrow_right:"
}
variable "fluxcloud_chart_verion" {
default = "0.1.2"
}
variable "release_channel" {
default = "REGULAR"
}
variable "private_key_pem" {
description = "Flux private key"
}
variable "git_branch" {
description = "Git branch used by Flux"
}
variable "git_ssh_url" {
description = "Git url in ssh scheme (used by Flux)"
}
variable "git_http_url" {
description = "Git url in HTTP scheme"
}
variable "flux_helm_operator_chart_version" {
default = "1.2.0"
description = "Flux helm operator chart version https://github.com/fluxcd/helm-operator/tree/master/chart/helm-operator"
}
variable "flux_chart_version" {
default = "1.5.0"
description = "Flux chart version https://github.com/fluxcd/flux/tree/master/chart"
}