Skip to main content

Retrieve

Project Secrets can be retrieved either via the vCluster.Pro CLI or using kubectl.

Retrieve via vCluster.Pro CLI

To get a list of project secrets using the vCluster.Pro CLI, run the following command:

vcluster pro secret get --project default

Retrieve via kubectl

To get a list of project secrets using kubectl, run the following command:

kubectl get secrets --all-namespaces --selector loft.sh/project-secret

If you want to only list project secrets for a project, add the project's namespace to the command:

kubectl get secrets --namespace loft-project-default --selector loft.sh/project-secret