-
Notifications
You must be signed in to change notification settings - Fork 3
/
variables.tf
118 lines (98 loc) · 3.37 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
variable "resource_group_location" {
description = "The Azure region location for the resource group. Should also be used to set the location of all other resources"
type = string
default = "westeurope"
}
variable "cluster_name" {
description = "The name of the cluster/environment to create. Will be used in several resources like for example resource_group"
type = string
}
variable "dns_a_record_ttl" {
description = "The time to live (ttl) value in seconds"
type = number
default = 3600
}
variable "zone_name" {
description = "The name of the DNS zone, where the A record belongs to. I.e. interim.cofinity-x.com"
type = string
default = "cofinity-x.com"
}
variable "dns_zone_resource_group_name" {
description = "The name of the resource group this A Record belongs to"
type = string
default = "cfx-core-dns-rg"
}
variable "default_node_pool_name" {
description = "The name of the AKS cluster's default node pool"
type = string
default = "default"
}
variable "k8s_vm_size" {
description = "The Azure VM Size string i.e. Standard_D2_v2 or Standard_D8s_v3"
type = string
default = "Standard_D4s_v4"
}
variable "k8s_cluster_node_count" {
description = "The number of kubernetes nodes to create for the k8s cluster"
type = number
default = 2
}
variable "k8s_version" {
description = "AKS k8s Version to deploy"
type = string
default = "1.25.5"
}
variable "enable_auto_scaling" {
description = "Whether auto scaling of the worker nodes are enabled"
type = bool
default = true
}
variable "max_count" {
description = "If auto scaling is enabled the maximum number of nodes in the pool"
type = number
default = 10
}
variable "min_count" {
description = "If auto scaling is enabled the minimum number of nodes in the pool"
type = number
default = 2
}
# Provider specific variables
variable "provider_service_principal_client_id" {
description = "The service principal client id to authenticate to Azure"
type = string
}
# variable "provider_service_principal_client_secret" {
# description = "The service principal client secret to authenticate to Azure"
# type = string
# }
variable "provider_azure_tenant_id" {
description = "The Azure tenant ID use"
type = string
}
variable "provider_azure_subscription_id" {
description = "The Azure subscription ID"
}
variable "provider_azure_dns_subscription_id" {
description = "The Azure subscription ID for the DNS entries. Only used, because DNS zone and AKS resources are in different subscriptions"
type = string
default = "cofinity-x-core"
}
variable "public_ip_ddos_protection_mode" {
description = "The ddos_protection_mode for the public IP resource. 'Disabled' on default"
type = string
default = "Disabled"
}
variable "provider_service_principal_client_certificate_path" {
description = "The service principal client certficate path (.pfx file)"
type = string
}
variable "provider_service_principal_client_certificate_password" {
description = "The service principal client certificate password"
type = string
}
variable "sku_tier" {
description = "The SKU Tier that should be used for this Kubernetes Cluster. Possible values are Free and Paid (which includes the Uptime SLA)."
type = string
default = "Free"
}