# TolerationV1 Properties

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [TolerationV1](/reference/api/csharp/aspire.hosting.kubernetes/tolerationv1.md)
- Kind: `Properties`
- Members: `5`

Represents a toleration configuration for Kubernetes pods. Used to tolerate taints that would otherwise prevent a pod from being scheduled onto a node. Defines the behavior of tolerating taints based on key-value pairs, operators, effects, and optional toleration durations.

## Effect

- Name: `Effect`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TolerationV1.cs)

Gets or sets the taint effect to tolerate. Represents the taint effect that the toleration is associated with. Common values include "NoSchedule", "PreferNoSchedule", or "NoExecute".

```csharp
public string Effect { get; set; }
```

## Key

- Name: `Key`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TolerationV1.cs)

Gets or sets the key used to identify a specific taint in Kubernetes scheduling rules. This property represents the label key that the toleration matches.

```csharp
public string Key { get; set; }
```

## Operator

- Name: `Operator`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TolerationV1.cs)

Specifies the operator that is applied to the key in a Kubernetes toleration. This property determines the way the key and value interact in the toleration specification.

```csharp
public string Operator { get; set; }
```

## TolerationSeconds

- Name: `TolerationSeconds`
- Modifiers: `nullable` `get; set`
- Returns: `long?`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TolerationV1.cs)

Specifies the duration (in seconds) for which a pod can tolerate a taint on a node. If this value is not set, the pod tolerates the taint indefinitely.

```csharp
public long? TolerationSeconds { get; set; }
```

## Value

- Name: `Value`
- Modifiers: `get; set`
- Returns: `string`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/src/Aspire.Hosting.Kubernetes/Resources/TolerationV1.cs)

Gets or sets the value associated with the toleration. Typically defines the specific matching value for a taint's key, representing the condition the toleration satisfies.

```csharp
public string Value { get; set; }
```
