Application setup with bucket access
This page describes how to use a PXBucketAccess object with your application. Note that the following steps are the same for both Pure Flashblade and AWS S3 buckets.
In your application's
deployment.yaml
file, add all of the environment variables for your buckets as Kubernetes deployment secret references. For example:env:
- name: S3_ACCESS_KEY
valueFrom:
secretKeyRef:
name: px-os-credentials-s3-pba
key: access-key-id
- name: S3_SECRET_KEY
valueFrom:
secretKeyRef:
name: px-os-credentials-s3-pba
key: secret-access-key
- name: S3_BUCKET_NAME
valueFrom:
secretKeyRef:
name: px-os-credentials-s3-pba
key: bucket-id
- name: S3_ENDPOINT
valueFrom:
secretKeyRef:
name: px-os-credentials-s3-pba
key: endpoint
- name: S3_REGION
valueFrom:
secretKeyRef:
name: px-os-credentials-s3-pba
key: regionApply the updates to your
deployment.yaml
:kubectl apply -f deployment.yaml