Skip to content

Commit 4821eda

Browse files
committed
fix: update default AKS node pool VM size to Standard_D2s_v4
1 parent ad1416a commit 4821eda

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

docs/azd.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ The following environment variables control what gets deployed:
8888
| Variable | Description |
8989
| --------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
9090
| `AZURE_LOCATION` | The Azure region for the deployment. |
91-
| `AKS_NODE_POOL_VM_SIZE` | AKS node VM size. Default: `Standard_D2_v4`. |
91+
| `AKS_NODE_POOL_VM_SIZE` | AKS node VM size. Default: `Standard_D2s_v4`. |
9292
| `DEPLOY_AZURE_CONTAINER_REGISTRY` | Set `true` to provision Azure Container Registry (ACR). When enabled, images are either imported from GHCR or built to ACR and the deployment uses that registry. |
9393
| `BUILD_CONTAINERS` | With ACR enabled (above), set `true` to build images from `src/*` using `az acr build`. If `false`/unset, images are imported from GHCR into ACR. |
9494
| `DEPLOY_AZURE_OPENAI` | Set `true` to deploy Azure OpenAI and enable `ai-service` with workload identity. |
@@ -107,7 +107,7 @@ These environment variables listed above can be set with commands like this:
107107
azd env set AZURE_LOCATION swedencentral
108108

109109
# set the SKU of the virtual machine scale set nodes in the AKS cluster
110-
azd env set AKS_NODE_POOL_VM_SIZE Standard_D2_v4
110+
azd env set AKS_NODE_POOL_VM_SIZE Standard_D2s_v4
111111

112112
# deploys azure container registry and imports containers from github container registry
113113
azd env set DEPLOY_AZURE_CONTAINER_REGISTRY true

infra/bicep/kubernetes.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
param location string
22
@minLength(3)
33
param nameSuffix string
4-
param vmSku string = 'Standard_D2_v4'
4+
param vmSku string
55
param deployAcr bool
66
param logsWorkspaceResourceId string
77
param metricsWorkspaceResourceId string

infra/bicep/main.bicep

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ param location string
1313
param appEnvironment string
1414

1515
@description('value of azure kubernetes node pool vm size')
16-
param aksNodePoolVMSize string = 'Standard_D2_v4'
16+
param aksNodePoolVMSize string = 'Standard_D2s_v4'
1717

1818
@description('value of the kubernetes namespace')
1919
param k8sNamespace string = 'pets'

infra/terraform/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ data "http" "current_ip" {
6767

6868
locals {
6969
name = "${var.environment}${random_pet.example.id}${random_integer.example.result}"
70-
aks_node_pool_vm_size = var.aks_node_pool_vm_size != "" ? var.aks_node_pool_vm_size : "Standard_D2_v4"
70+
aks_node_pool_vm_size = var.aks_node_pool_vm_size != "" ? var.aks_node_pool_vm_size : "Standard_D2s_v4"
7171
deploy_azure_cosmosdb = var.deploy_azure_cosmosdb == "true" ? true : false
7272
default_cosmosdb_account_kind = "GlobalDocumentDB"
7373
cosmosdb_account_kind = var.cosmosdb_account_kind != "" ? var.cosmosdb_account_kind : local.default_cosmosdb_account_kind

infra/terraform/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ variable "environment" {
1111
variable "aks_node_pool_vm_size" {
1212
description = "value of azure kubernetes node pool vm size"
1313
type = string
14-
default = "Standard_D2_v4"
14+
default = "Standard_D2s_v4"
1515
}
1616

1717
variable "k8s_namespace" {

0 commit comments

Comments
 (0)