--- title: "Define Bucket Access" slug: "define-bucket-access-2-4" updated: 2026-10-28T02:14:43Z published: 2026-10-28T02:14:43Z canonical: "docs.vastdata.com/define-bucket-access-2-4" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Define Bucket Access Bucket access (`BucketAccess`) represents a combination of parameters necessary to get access to a particular bucket. A minimal bucket access block would include the name of the bucket claim, the name of the bucket access class, and the name of the Kubernetes secret that contains the credentials required for accessing the bucket, for example: ```plaintext kind: BucketAccess apiVersion: objectstorage.k8s.io/v1alpha1 metadata:  name: sample-access spec:  bucketClaimName: sample-bucket  bucketAccessClassName: sample-bac  credentialsSecretName: sample-access-secret ``` After you apply the configuration file with the bucket access definition, verify that the Kubernetes secret exists and can be attached to a Kubernetes pod: ```plaintext kubectl get secret <...> NAME                               TYPE                 DATA   AGE sample-access-secret               Opaque               1      11s ```