# withSystemNodePool

- Module: [Aspire.Hosting.Azure.Kubernetes](/reference/api/typescript/aspire.hosting.azure.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Replaces the default system node pool with a customized configuration.

## Definition

```typescript
interface AzureKubernetesEnvironmentResource {
  // ... omitted for brevity
  withSystemNodePool(
    vmSize?: string,
    minCount?: number,
    maxCount?: number): AzureKubernetesEnvironmentResource
}
```

## Parameters

- `vmSize` (`string`) `optional` `= Standard_D2s_v5`
- `minCount` (`number`) `optional` `= 1`
- `maxCount` (`number`) `optional` `= 3`

## Returns

[AzureKubernetesEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.kubernetes/azurekubernetesenvironmentresource.md) `builder`

## Applies to

- [AzureKubernetesEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.kubernetes/azurekubernetesenvironmentresource.md)
