You can list storage buckets and view their configuration details in Google Distributed Cloud (GDC) air-gapped appliance projects by using the kubectl CLI. Reviewing these configurations lets you inspect your object storage resources and verify bucket settings across your project namespaces.
This document is for IT administrators within the platform administrator group and developers within the application operator group who manage object storage resources in GDC air-gapped appliance environments.
Before you begin
A project namespace manages bucket resources in the management API server. You must have a project to work with buckets and objects.
You must also have the appropriate bucket permissions to perform the following operation. See Grant bucket access.
To run commands against the management API server, sign in and generate the kubeconfig file for the management API server if you don't have one.
List storage buckets
To list all the buckets that you have access to in a given object storage tenant, complete the following steps:
Run the following commands to list all buckets:
kubectl get buckets --all-namespaces kubectl get buckets --namespace NAMESPACE_NAME
View bucket configuration
Use either command to view the configuration details for a bucket:
kubectl describe buckets/BUCKET_NAME --namespace NAMESPACE_NAME
kubectl get buckets/BUCKET_NAME --namespace NAMESPACE_NAME -o yaml