For the complete documentation index, see llms.txt. This page is also available as Markdown.
Cortex CloudApplication Security

Azure Kubernetes Cluster (AKS) Nodes Don't Limit the Maximum Pods to Greater than 50 misconfiguratio

Azure Kubernetes Cluster (AKS) Nodes Don't Limit the Maximum Pods to Greater than 50 misconfiguration detected in code

Rule Details

Cortex AppSec Rule ID

APPSEC_AZURE_168

Category - Subcategory

Kubernetes - Resource Management

Provider

AZURE

Severity

LOW

Framework

ARM, Bicep, Terraform, Terraform Plan

Impact

Ensure Azure Kubernetes Cluster (AKS) nodes should use a minimum number of 50 pods.

How to Fix

Resource: azurerm_kubernetes_cluster, azurerm_kubernetes_cluster_node_pool

  • Arguments: max_pods [source,go]


resource "azurerm_kubernetes_cluster" "example" { name = "example-aks" location = azurerm_resource_group.example.location resource_group_name = azurerm_resource_group.example.name

default_node_pool { name = "default"

  • max_pods = 50 }

tags = { Environment = "dev" } }

OR For separate node pool

resource "azurerm_kubernetes_cluster_node_pool" "example" { name = "example" kubernetes_cluster_id = azurerm_kubernetes_cluster.example.id

  • max_pods = 50 }


Last updated

Was this helpful?