# EnvVarSourceV1 Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [EnvVarSourceV1](/reference/api/csharp/aspire.hosting.kubernetes/envvarsourcev1.md)
- Kind: `Constructors`
- Members: `1`

EnvVarSourceV1 represents a source for an environment variable value in a Kubernetes resource. It provides multiple options to derive the value of an environment variable, such as from a specific key in a ConfigMap, a field reference within the resource, a resource field (e.g., CPU or memory usage), or a specific key in a Secret.

## EnvVarSourceV1

- Name: `Constructor`

```csharp
public sealed class EnvVarSourceV1
{
    public EnvVarSourceV1()
    {
        // ...
    }
}
```
