forked from jenkins-x/terraform-google-jx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
148 lines (126 loc) · 4.76 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
// ----------------------------------------------------------------------------
// 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 "velero_namespace" {
description = "Kubernetes namespace for Velero"
type = string
default = "velero"
}
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 "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 "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 "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"
}