forked from jenkins-x/terraform-google-jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
220 lines (187 loc) · 6.7 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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
// ----------------------------------------------------------------------------
// Required Variables
// ----------------------------------------------------------------------------
variable "gcp_project" {
description = "The name of the GCP project to use"
type = string
}
// ----------------------------------------------------------------------------
// Optional Variables
// ----------------------------------------------------------------------------
variable "cluster_name" {
description = "Name of the Kubernetes cluster to create"
type = string
default = ""
}
variable "zone" {
description = "Zone in which to create the cluster (deprecated, use cluster_location instead)"
type = string
default = ""
}
variable "cluster_location" {
description = "The location (region or zone) in which the cluster master will be created. If you specify a zone (such as us-central1-a), the cluster will be a zonal cluster with a single cluster master. If you specify a region (such as us-west1), the cluster will be a regional cluster with multiple masters spread across zones in the region"
type = string
default = "us-central1-a"
}
variable "bucket_location" {
description = "Bucket location for storage"
type = string
default = "US"
}
variable "jenkins_x_namespace" {
description = "Kubernetes namespace to install Jenkins X in"
type = string
default = "jx"
}
variable "force_destroy" {
description = "Flag to determine whether storage buckets get forcefully destroyed"
type = bool
default = false
}
variable "parent_domain" {
description = "The parent domain to be allocated to the cluster"
type = string
default = ""
}
variable "tls_email" {
description = "Email used by Let's Encrypt. Required for TLS when parent_domain is specified"
type = string
default = ""
}
variable "create_ui_sa" {
description = "Whether the service accounts for the UI should be created"
type = bool
default = false
}
// ----------------------------------------------------------------------------
// Vault
// ----------------------------------------------------------------------------
variable "vault_url" {
description = "URL to an external Vault instance in case Jenkins X shall not create its own system Vault"
type = string
default = ""
}
// ----------------------------------------------------------------------------
// Velero/backup
// ----------------------------------------------------------------------------
variable "enable_backup" {
description = "Whether or not Velero backups should be enabled"
type = bool
default = false
}
variable "velero_namespace" {
description = "Kubernetes namespace for Velero"
type = string
default = "velero"
}
variable "velero_schedule" {
description = "The Velero backup schedule in cron notation to be set in the Velero Schedule CRD (see [default-backup.yaml](https://github.com/jenkins-x/jenkins-x-boot-config/blob/master/systems/velero-backups/templates/default-backup.yaml))"
type = string
default = "0 * * * *"
}
variable "velero_ttl" {
description = "The the lifetime of a velero backup to be set in the Velero Schedule CRD (see [default-backup.yaml](https://github.com/jenkins-x/jenkins-x-boot-config/blob/master/systems/velero-backups/templates/default-backup))"
type = string
default = "720h0m0s"
}
// ----------------------------------------------------------------------------
// cluster configuration
// ----------------------------------------------------------------------------
variable "node_machine_type" {
description = "Node type for the Kubernetes cluster"
type = string
default = "n1-standard-2"
}
variable "node_preemptible" {
description = "Use preemptible nodes"
type = bool
default = false
}
variable "min_node_count" {
description = "Minimum number of cluster nodes"
type = number
default = 3
}
variable "max_node_count" {
description = "Maximum number of cluster nodes"
type = number
default = 5
}
variable "node_disk_size" {
description = "Node disk size in GB"
type = string
default = "100"
}
variable "node_disk_type" {
description = "Node disk type, either pd-standard or pd-ssd"
type = string
default = "pd-standard"
}
variable "release_channel" {
description = "The GKE release channel to subscribe to. See https://cloud.google.com/kubernetes-engine/docs/concepts/release-channels"
type = string
default = "UNSPECIFIED"
}
variable "resource_labels" {
description = "Set of labels to be applied to the cluster"
type = map
default = {}
}
// ----------------------------------------------------------------------------
// jx-requirements.yml specific variables only used for template rendering
// ----------------------------------------------------------------------------
variable "git_owner_requirement_repos" {
description = "The git id of the owner for the requirement repositories"
type = string
default = ""
}
variable "dev_env_approvers" {
description = "List of git users allowed to approve pull request for dev enviornment repository"
type = list(string)
default = []
}
variable "lets_encrypt_production" {
description = "Flag to determine wether or not to use the Let's Encrypt production server."
type = bool
default = true
}
variable "webhook" {
description = "Jenkins X webhook handler for git provider"
type = string
default = "lighthouse"
}
variable "version_stream_url" {
description = "The URL for the version stream to use when booting Jenkins X. See https://jenkins-x.io/docs/concepts/version-stream/"
type = string
default = "https://github.com/jenkins-x/jenkins-x-versions.git"
}
variable "version_stream_ref" {
description = "The git ref for version stream to use when booting Jenkins X. See https://jenkins-x.io/docs/concepts/version-stream/"
type = string
default = "master"
}
variable "jx2" {
description = "Is a Jenkins X 2 install"
type = bool
default = true
}
variable "gsm" {
description = "Enables Google Secrets Manager, not available with JX2"
type = bool
default = false
}
variable "jx_git_url" {
description = "URL for the Jenins X cluster git repository"
type = string
default = ""
}
variable "jx_bot_username" {
description = "Bot username used to interact with the Jenkins X cluster git repository"
type = string
default = ""
}
variable "jx_bot_token" {
description = "Bot token used to interact with the Jenkins X cluster git repository"
type = string
default = ""
}