Configure Storage
By default, SE2 will store compiled plugins and plugin source code on the local storage in your Kubernetes cluster. For greater scalability, SE2 can be configured to store artifacts in cloud-based object storage like Amazon S3 or Google Cloud Storage.
Authentication
Bucket authentication varies between cloud providers.
Amazon S3
You will need to supply the AWS_ACCESS_KEY_ID
, AWS_SECRET_ACCESS_KEY
, AWS_SESSION_TOKEN
and AWS_REGION
environment variables to the API for both the control plane and the builder. See the AWS authentication documentation for details. It is also possible to store the configuration as a Kubernetes secret, similar to the Google Cloud Storage configuration.
To configure a storage bucket, provide the SE2_STORAGE_PATH
environment variable to both the control plane and builder, e.g. s3://my-bucket
for Amazon S3 or gs://my-bucket
for Google Cloud Storage. For Kubernetes deployments, this is done in .suborbital/se2-controlplane-deployment.yaml
under the controlplane
and builder
containers sections, and for local docker-compose deployments, this is done in docker-compose.yaml
under the se2-controlplane
and se2-builder
services.