Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

Secret

Classsealednet10.0
📦 Aspire.Hosting.Kubernetes v13.6.0-preview.1.26478.8
Represents a Kubernetes Secret resource in the v1 API version.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class Secret
: Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
{
// ...
}
The Secret class is used to store sensitive information, such as passwords, OAuth tokens, and other secrets. Secrets are encoded as key-value pairs and can be mounted into containers or referenced by other Kubernetes resources. By default, the data is Base64-encoded, and alternative string-based representations can also be used.
View all constructors
View all properties