# AzureKubernetesEnvironmentResource.withSystemNodePool

- Module: [Aspire.Hosting.Azure.Kubernetes](/reference/api/typescript/aspire.hosting.azure.kubernetes.md)
- Defined on: [AzureKubernetesEnvironmentResource](/reference/api/typescript/aspire.hosting.azure.kubernetes/azurekubernetesenvironmentresource.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`

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;
}
```

## Signature

```typescript
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`

## Defined on

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