Create buckets using the Portworx Object Service
This page describes how to create and provide access to a Portworx Bucket Claim using either AWS S3 or Pure FlashBlade.
This page describes how to create and provide access to a Portworx Bucket Claim using AWS S3
AWS S3
Use the following steps to get started with dynamically provisioned buckets.
Provision a new bucket
-
Create a new file named
pxbucketclass.yaml
, replacingregion
andobject.portworx.io/endpoint
with your desired AWS S3 region and endpoint:apiVersion: object.portworx.io/v1alpha1
kind: PXBucketClass
metadata:
name: pbclass-s3
region: us-west-1
deletionPolicy: Delete
parameters:
object.portworx.io/backend-type: S3Driver
object.portworx.io/endpoint: s3.us-west-1.amazonaws.com -
Create the PXBucketClass object:
kubectl apply -f pxbucketclass.yaml
-
Create a new file named
pxbucketclaim.yaml
:apiVersion: object.portworx.io/v1alpha1
kind: PXBucketClaim
metadata:
name: s3-pbc
namespace: default
spec:
bucketClassName: pbclass-s3 -
Create the PXBucketClaim object:
kubectl apply -f pxbucketclaim.yaml
- Once the bucket is provisioned, its
PROVISIONED
state will be listed astrue
in theCustomResource
:
kubectl get pxbucketclaim
NAME PROVISIONED BUCKETID BACKENDTYPE
s3-pbc true px-os-xxxxxxxx-xxxx-xxxx-xxxx-ac6595c2b721 S3Driver