This commit is contained in:
Malte Lantin 2019-08-15 17:40:40 +02:00
Родитель 25543c6bf2
Коммит c323fd3b26
1 изменённых файлов: 12 добавлений и 12 удалений

Просмотреть файл

@ -8,25 +8,25 @@ This Terraform module deploys a Kubernetes cluster on Azure using AKS (Azure Kub
```hcl
module "aks" {
source = "Azure/aks/azurerm"
version = "0.9.0"
version = "2.0.0"
CLIENT_ID = "your-service-principal-client-id"
CLIENT_SECRET = "your-service-principal-client-secret"
CLIENT_ID = "your-service-principal-client-appid"
CLIENT_SECRET = "your-service-principal-client-password"
prefix = "your-custom-resource-prefix"
}
```
This module is configured through variables. Make sure to select an [Azure location that supports AKS](https://docs.microsoft.com/en-us/azure/aks/container-service-quotas) and to [have a Service Principal created](https://www.terraform.io/docs/providers/azurerm/authenticating_via_service_principal.html). If no public ssh key is set through variables, a newly generated public key will be used and the private key will be saved in a *private_ssh_key* file.
This module is configured through variables. Make sure to select an [Azure location that supports AKS](https://azure.microsoft.com/en-us/global-infrastructure/services/?products=kubernetes-service) and to [have a Service Principal created](https://www.terraform.io/docs/providers/azurerm/authenticating_via_service_principal.html). If no public ssh key is set through variables, a newly generated public key will be used and the private key will be saved in a *private_ssh_key* file.
See below for the default variable values.
```hcl
variable "prefix" {
description = "The prefix for the resources created in the specified Azure Resource Group"
default = "cluster"
}
variable "location" {
default = "eastus"
default = "eastus"
description = "The location for the AKS deployment"
}
@ -39,23 +39,23 @@ variable "CLIENT_SECRET" {
}
variable "admin_username" {
default = "azureuser"
default = "azureuser"
description = "The username of the local administrator to be created on the Kubernetes cluster"
}
variable "agents_size" {
default = "Standard_F2"
default = "Standard_F2"
description = "The default virtual machine size for the Kubernetes agents"
}
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"
default = "PerGB2018"
default = "PerGB2018"
}
variable "log_retention_in_days" {
description = "The retention period for the logs in days"
default = 30
default = 30
}
variable "agents_count" {
@ -65,12 +65,12 @@ variable "agents_count" {
variable "kubernetes_version" {
description = "Version of Kubernetes to install"
default = "1.11.3"
default = "1.14.5"
}
variable "public_ssh_key" {
description = "A custom ssh key to control access to the AKS cluster"
default = ""
default = ""
}
```