Skip to main content
Version: main 🚧

Create project secrets

Project secrets let you define secret data once and share it with your project's namespaces and clusters.

You consume the secret by creating a regular Kubernetes secret with a label that references the project secret. vCluster Platform then synchronizes the data into that secret automatically.

Tenant users

The platform UI doesn't show project secrets to tenant users, so the following steps are for other users with permission to create project secrets. Tenant users can create project secrets in their own projects through the management API instead. Connect kubectl with vcluster platform connect management, then apply a ProjectSecret manifest. See the ProjectSecret reference for an example.

  1. Select your project in the project switcher in the sidebar, then click Secrets.

  2. Click .

  3. Enter a display name such as "My Secret" and an optional description. The UI fills in .metadata.name automatically; edit the YAML directly to override it.

  4. In the Data section, add your secret key/value pairs.

  5. Click .

Confirm that the new secret appears in the project's secret list.

See Sync secrets to learn how to use project secret data from a Pod.