forked from jackofallops/terraform-azurerm-aks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
134 lines (107 loc) · 3.87 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
################################
## Azure system configuration ##
################################
variable "location" {
description = "(Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created."
default = "westeurope"
}
###############################
## AKS cluster configuration ##
###############################
variable "cluster_name" {
description = "Name for this cluster"
default = "myakscluster"
}
variable "k8s_version" {
description = "Version of Kubernetes to install on the cluster - see `az aks get-versions --location [location] for valid values`"
default = "1.8.7"
}
variable "dns_prefix" {
description = "(Optional) DNS prefix specified when creating the managed cluster."
default = ""
}
variable "sp_client_id" {
description = <<EOL
Service Principal ID with permissions to manage resources in the target subscription
Note: this should be defined as either an environment variable or an external var-file reference and not stored with the code base
EOL
// default = "00000000-0000-0000-0000-000000000000"
default = "please-configure-sp-details"
}
variable "sp_client_secret" {
description = <<EOL
Service Principal password with permissions to manage resources in the target subscription
Note: this should be defined as either an environment variable or an external var-file reference and not stored with the code base
EOL
default = "000000000000000000000000000000000000000000000="
}
#################################
## Node / worker configuration ##
#################################
variable "agent_prefix" {
description = "DNS name prefix for the worker nodes (aka minions)"
default = "minion"
}
variable "agent_vm_sku" {
description = "Azure VM SKU for the agent/worker nodes"
default = "Standard_DS2_v2"
}
variable "node_os_disk_size_gb" {
description = "Size in GB of the node's OS disks (default 30)"
default = 30
}
variable "node_count" {
description = "Number of worker nodes to create - defaults to 3"
default = 3
}
variable "agent_admin_user" {
description = "Admin username for the first user created on the worker nodes"
default = "azureuser"
}
variable "public_key_data" {
description = "Public key to install for SSH to the nodes - defaults to the running user's .ssh/id_rsa.pub file"
default = ""
}
######################################
## Container Registry configuration ##
######################################
variable "create_container_registry" {
description = "Should a container registry be created with the AKS cluster (true / false)"
default = "false"
}
variable "container_registry_rg" {
description = "(Optional) Name of the resource group into which the Container Registry (if used) will be created"
default = ""
}
variable "container_registry_tags" {
description = "Map of tags to apply to the container registry"
type = "map"
default = {}
}
variable "container_registry_sku" {
description = "SKU for the container registry - one of Basic, Standard, Premium"
default = "Basic"
}
variable "container_registry_name" {
description = "Name for the container registry - will generate one from the name of the AKS cluster if left empty"
default = ""
}
########################
## provisioner config ##
########################
variable "nginx_deployment_name" {
description = "Kubernetes deployment name for the ingress controller"
default = "ingress-nginx"
}
variable "cert_manager_deployment_name" {
description = "Kubernetes deployment name for the certificate manager"
default = "certifcate-manager"
}
variable "ingress_controller_namespace" {
description = "Kubernetes namespace the ingress controller will be deployed into"
default = "default"
}
variable "subnet_id" {
description = "Subnet ID for agent pool profile"
type = "string"
}