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.
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.
Select your project in the project switcher in the sidebar, then click Secrets.
Click .
Enter a display name such as "My Secret" and an optional description. The UI fills in
.metadata.nameautomatically; edit the YAML directly to override it.In the Data section, add your secret key/value pairs.
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.