-
Notifications
You must be signed in to change notification settings - Fork 1
/
variables.tf.example
executable file
·77 lines (68 loc) · 1.54 KB
/
variables.tf.example
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
variable "gcp_profile" {
description = "GCP Configuration"
type = map
default = {
project = "default-project"
region = "us-central1"
zone = "us-central1-c"
credentials = "~/.ssh/default-project.json"
}
sensitive = true
}
variable "gce_vm" {
description = "GCE Instance Configuration"
type = map
default = {
instance_type = "n2-standard-2"
os_project = "ubuntu-os-cloud"
os_family = "ubuntu-2004-lts"
boot_disk_size = 200
ssh_user = "default_user"
ssh_pub = "~/.ssh/id_rsa.pub"
}
}
variable "master_count" {
description = "K8s Master instances"
type = number
default = 1
}
variable "worker_count" {
description = "K8s worker instances"
type = number
default = 3
}
variable "k8s_version" {
type = string
default = "1.20.0"
}
variable "gcp_private_dns_zone" {
description = "Google Managed DNS zone - private zone name"
type = map
default = {
zone_name = "my-private"
dns_name = "cks.vmware.lab."
}
}
variable "gcp_public_dns_zone" {
description = "Google Managed DNS zone - public (preconfig required)"
type = map
default = {
enabled = false
zone_name = "my-public-zone"
}
}
variable "vpc_subnet_cidr" {
description = "VPC custom subnet CIDR"
type = string
default = "10.240.0.0/24"
}
variable "k8s_pod_cidr" {
description = "K8s pod subnet CIDR"
type = string
default = "10.244.0.0/16"
}
variable "k8s_service_cidr" {
description = "K8s service CIDR"
type = string
default = "10.96.0.0/12"
}