object-bucket-claim

by joaquinito2051

Helm chartv0.1.12App 0.1.11

A Helm chart for ObjectBucketClaim to be consumed by other applications.

About this chart

ObjectBucketClaim Helm Chart

Chart Details

This chart will do the following:

  • Create a ObjectBucketClaim that will be reconciled by your S3-compatible storage provider to create an S3 bucket

Installing the Chart

To install the chart, use the following:

$ helm install stable/object-bucket-claim

Configuration

The config assumes the fact that it is going to be consumed by dkp platform. But you can change it to also include your own apps.

dkp:
  velero:
    enabled: true
    bucketName: dkp-velero
    # generateBucketName: ceph-bkt
    storageClassName: s3-provider-sc
    priorityClassName: dkp-critical-priority

    labels: {}
    additionalConfig:
      # maxObjects: "1000"
      # in string format like "2G", minimum is "4K"
      maxSize: "10G"  
  loki:
    ...
  your-app:
    ...

The following table lists the configurable parameters of each app under to top-level dkp.$app flag the chart and their default values. ($app is velero|loki|your-app in the example above.)

ParameterDescriptionDefault
dkp.$app.bucketNameName of the bucket to createtrue
dkp.$app.generateBucketNamePrefix of the bucket name with a generated suffixnil
dkp.$app.labelslabels to set on this object{}
dkp.$app.additionalConfig.maxObjectsLimit of number of S3 objects this bucket can hold""
dkp.$app.additionalConfig.maxSizeLimit of the storage this S3 bucket can use from the S3 storage provider""
dkp.$app.priorityClassNamePriority class to set on pods""

Specify each parameter using the --set key=value[,key=value] argument to helm install.

Deploy object-bucket-claim with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has object-bucket-claim on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartobject-bucket-claim is pinned at v0.1.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply