forked from Azure/terraform-azurerm-aks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
147 lines (123 loc) · 3.95 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
variable "resource_group_name" {
description = "The resource group name to be imported"
type = string
}
variable "prefix" {
description = "The prefix for the resources created in the specified Azure Resource Group"
type = string
}
variable "client_id" {
description = "(Optional) The Client ID (appId) for the Service Principal used for the AKS deployment"
type = string
default = ""
}
variable "client_secret" {
description = "(Optional) The Client Secret (password) for the Service Principal used for the AKS deployment"
type = string
default = ""
}
variable "admin_username" {
default = "azureuser"
description = "The username of the local administrator to be created on the Kubernetes cluster"
type = string
}
variable "agents_size" {
default = "Standard_D2s_v3"
description = "The default virtual machine size for the Kubernetes agents"
type = string
}
variable "log_analytics_workspace_sku" {
description = "The SKU (pricing level) of the Log Analytics workspace. For new subscriptions the SKU should be set to PerGB2018"
type = string
default = "PerGB2018"
}
variable "log_retention_in_days" {
description = "The retention period for the logs in days"
type = number
default = 30
}
variable "agents_count" {
description = "The number of Agents that should exist in the Agent Pool"
type = number
default = 2
}
variable "public_ssh_key" {
description = "A custom ssh key to control access to the AKS cluster"
type = string
default = ""
}
variable "tags" {
type = map(string)
description = "Any tags that should be present on the Virtual Network resources"
default = {}
}
variable "enable_log_analytics_workspace" {
type = bool
description = "Enable the creation of azurerm_log_analytics_workspace and azurerm_log_analytics_solution or not"
default = true
}
variable "vnet_subnet_id" {
description = "(Optional) The ID of a Subnet where the Kubernetes Node Pool should exist. Changing this forces a new resource to be created."
type = string
default = null
}
variable "os_disk_size_gb" {
description = "Disk size of nodes in GBs."
type = number
default = 50
}
variable "enable_kube_dashboard" {
description = "Enable Kubernetes Dashboard."
type = bool
default = null
}
variable "enable_http_application_routing" {
description = "Enable HTTP Application Routing Addon (forces recreation)."
type = bool
default = false
}
variable "enable_azure_policy" {
description = "Enable Azure Policy Addon."
type = bool
default = false
}
variable "sku_tier" {
description = "The SKU Tier that should be used for this Kubernetes Cluster. Possible values are Free and Paid"
type = string
default = "Free"
}
variable "enable_role_based_access_control" {
description = "Enable Role Based Access Control."
type = bool
default = false
}
variable "rbac_aad_managed" {
description = "Is the Azure Active Directory integration Managed, meaning that Azure will create/manage the Service Principal used for integration."
type = bool
default = false
}
variable "rbac_aad_admin_group_object_ids" {
description = "Object ID of groups with admin access."
type = list(string)
default = null
}
variable "rbac_aad_client_app_id" {
description = "The Client ID of an Azure Active Directory Application."
type = string
default = null
}
variable "rbac_aad_server_app_id" {
description = "The Server ID of an Azure Active Directory Application."
type = string
default = null
}
variable "rbac_aad_server_app_secret" {
description = "The Server Secret of an Azure Active Directory Application."
type = string
default = null
}
variable "network_plugin" {
description = "Network plugin to use for networking."
type = string
default = "kubenet"
}