Retrieve project secrets
Project Secrets can be retrieved either via the vCluster CLI or using kubectl
.
Retrieve via vCluster CLI​
To get a list of project secrets using the vCluster CLI, run the following command:
vcluster platform 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