# AksNodePoolConfig

- Module: [Aspire.Hosting.Azure.Kubernetes](/reference/api/go/aspire.hosting.azure.kubernetes.md)
- Version: `17.0.0`
- Kind: `struct`
- Source: [GitHub](https://github.com/microsoft/aspire/tree/bcfa151cdca6d0a573f22d5d9c23f9c727cb3b2f)

Configuration for an AKS node pool.

## Remarks

Configuration remains mutable so extensions can compose changes before infrastructure generation.
The final values are validated when generating the AKS agent pool profile.
The node pool name and mode are fixed at construction to preserve pool identity.

## Definition

```go
type AksNodePoolConfig struct {
    Name     *string          `json:"Name"`
    Mode     *AksNodePoolMode `json:"Mode"`
    VmSize   string           `json:"VmSize"`
    MinCount float64          `json:"MinCount"`
    MaxCount float64          `json:"MaxCount"`
    OsSku    *string          `json:"OsSku"`
}
```

## Fields

- `Name`: `*string` `optional` -- Gets the name of the node pool.
- `Mode`: [`*AksNodePoolMode`](/reference/api/go/aspire.hosting.azure.kubernetes/aksnodepoolmode.md) `optional` -- Gets the mode of the node pool.
- `VmSize`: `string` -- Gets or sets the VM size for nodes in the pool.
- `MinCount`: `float64` -- Gets or sets the minimum node count for autoscaling. System pools require at least 1; user pools can scale to 0.
- `MaxCount`: `float64` -- Gets or sets the maximum node count for autoscaling. Must be at least the minimum node count.
- `OsSku`: `*string` -- Gets or sets the Linux OS SKU, such as `AzureLinux` or `Ubuntu`. A `null` value leaves the SKU unspecified so AKS chooses its default.
