Watch Aspire live streamsDocsTry Aspire

FileKeySelectorV1

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v17.0.0
Selects a key from an environment variable file in a pod's emptyDir volume.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class FileKeySelectorV1
{
// ...
}
Requires Kubernetes 1.34 or later with the EnvFiles feature enabled. The feature is enabled by default from Kubernetes 1.35. An init container can write the file before the consuming container starts. Changes to the file do not update the environment of a running container.
View all constructors
View all properties