# KubernetesEnvironmentResource

- Module: [Aspire.Hosting.Kubernetes](/reference/api/typescript/aspire.hosting.kubernetes.md)
- Version: `13.2.0-preview.1.26170.3`
- Kind: `handle`
- Source: [GitHub](https://github.com/microsoft/aspire)

## Definition

```typescript
interface KubernetesEnvironmentResource
  extends IComputeEnvironmentResource,
    IResource {
  defaultImagePullPolicy: string;
  defaultServiceType: string;
  defaultStorageClassName: string;
  defaultStorageReadWritePolicy: string;
  defaultStorageSize: string;
  defaultStorageType: string;
  helmChartDescription: string;
  helmChartName: string;
  helmChartVersion: string;
  readonly name: string;
  withProperties(configure: (obj: KubernetesEnvironmentResource) => Promise<void>): KubernetesEnvironmentResource;
}
```

## Properties

- `defaultImagePullPolicy`: `string` `get - set` -- Gets the DefaultImagePullPolicy property
- `defaultServiceType`: `string` `get - set` -- Gets the DefaultServiceType property
- `defaultStorageClassName`: `string` `get - set` -- Gets the DefaultStorageClassName property
- `defaultStorageReadWritePolicy`: `string` `get - set` -- Gets the DefaultStorageReadWritePolicy property
- `defaultStorageSize`: `string` `get - set` -- Gets the DefaultStorageSize property
- `defaultStorageType`: `string` `get - set` -- Gets the DefaultStorageType property
- `helmChartDescription`: `string` `get - set` -- Gets the HelmChartDescription property
- `helmChartName`: `string` `get - set` -- Gets the HelmChartName property
- `helmChartVersion`: `string` `get - set` -- Gets the HelmChartVersion property
- `name`: `string` `get` -- Gets the Name property

## Methods

- [withProperties](/reference/api/typescript/aspire.hosting.kubernetes/kubernetesenvironmentresource/withproperties.md) -- `method` -- Configures properties of a Kubernetes environment
    ```typescript
  withProperties(configure: (obj: KubernetesEnvironmentResource) => Promise<void>): KubernetesEnvironmentResource
  ```
