Share via


Secret Constructor

Definition

Represents a Kubernetes Secret resource in the v1 API version.

public Secret();
Public Sub New ()

Remarks

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.

Applies to