garage

by KvalitetsIT

Helm chartv0.10.4App v2.5.0Verified publisher

S3-compatible object store for small self-hosted geo-distributed deployments

About this chart

garage

S3-compatible object store for small self-hosted geo-distributed deployments

Homepage: https://garagehq.deuxfleurs.fr/

Maintainers

NameEmailUrl
Garage maintainer team[email protected]

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
argslist[]Override the container arguments.
commandlist[]Override the container entrypoint.
commonLabelsobject{}Additional labels to add to all resources created by this chart
deployment.kindstring"StatefulSet"Switchable to DaemonSet
deployment.podManagementPolicystring"OrderedReady"If using statefulset, allow Parallel or OrderedReady (default)
deployment.replicaCountint3Number of StatefulSet replicas/garage nodes to start
environmentobject{}Extra container env vars, as a list of {name, value} objects (same shape as a Pod container's env)
extraVolumeMountsobject{}Extra volume mounts, as a list of mount objects (same shape as a container's volumeMounts)
extraVolumesobject{}Extra volumes, as a list of volume objects (same shape as a PodSpec's volumes)
fullnameOverridestring""
garage.additionalTopLevelConfigstring""Additional configuration to append to garage.toml. Use a multi-line string for custom config. Example: additionalTopLevelConfig:
garage.admin.apiBindAddrstring"[::]:3903"
garage.blockSizestring"1048576"Defaults is 1MB, an increase can result in better performance in certain scenarios https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#block_size
garage.bootstrapPeerslist[]This is not required if you use the integrated kubernetes discovery
garage.compressionLevelstring"1"zstd compression level of stored blocks https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#compression_level
garage.consistencyModestring"consistent"By default, enable read-after-write consistency guarantees, see the consistency_mode section at https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#consistency_mode
garage.dbEnginestring"lmdb"Can be changed for better performance on certain systems, use "sqlite" to prioritize durability https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#db_engine
garage.existingConfigMapstring""if not empty string, allow using an existing ConfigMap for the garage.toml, if set, ignores garage.toml
garage.existingRpcSecretstring""If you want to provide an rpcSecret within an existing k8s secret, specify the secret name here, and store the value under the secret key rpcSecret the default secret will not be created
garage.garageTomlStringstring""String Template for the garage configuration if set, ignores above values. Values can be templated, see https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/
garage.kubernetesSkipCrdboolfalseSet to true if you want to use k8s discovery but install the CRDs manually outside of the helm chart, for example if you operate at namespace level without cluster resources
garage.metadataAutoSnapshotIntervalstring""If this value is set, Garage will automatically take a snapshot of the metadata DB file at a regular interval and save it in the metadata directory. https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#metadata_auto_snapshot_interval
garage.noClusterRoleboolfalseSet to true if you want to use roles instead of cluster roles
garage.replicationFactorstring"3"Default to 3 replicas, see the replication_factor section at https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#replication_factor
garage.rpcBindAddrstring"[::]:3901"Port used for node-to-node RPC
garage.rpcSecretstring""If not given, a random secret will be generated and stored in a Secret object
garage.s3.api.bindAddrstring"[::]:3900"
garage.s3.api.regionstring"garage"
garage.s3.api.rootDomainstring".s3.garage.tld"
garage.s3.web.bindAddrstring"[::]:3902"
garage.s3.web.indexstring"index.html"
garage.s3.web.rootDomainstring".web.garage.tld"
garage.singleNodeboolfalseStart Garage with --single-node, run one StatefulSet replica, and render replication_factor = 1 in the generated garage.toml, if using garageTomlString or existingConfigMap, set replication_factor = 1 yourself.
image.pullPolicystring"IfNotPresent"
image.repositorystring"dxflrs/amd64_garage"default to amd64 docker image
image.tagstring""set the image tag, please prefer using the chart version and not this, to avoid compatibility issues
imagePullSecretslist[]set if you need credentials to pull your custom image
ingress.s3.api.annotationsobject{}Rely either on the className or the annotation below but not both! If you want to use the className, set className: "nginx" and replace "nginx" by an Ingress controller name, examples here.
ingress.s3.api.enabledboolfalse
ingress.s3.api.hosts[0]object{"host":"s3.garage.tld","paths":[{"path":"/","pathType":"Prefix"}]}garage S3 API endpoint, to be used with awscli for example
ingress.s3.api.hosts[1]object{"host":"*.s3.garage.tld","paths":[{"path":"/","pathType":"Prefix"}]}garage S3 API endpoint, DNS style bucket access
ingress.s3.api.labelsobject{}
ingress.s3.api.tlslist[]
ingress.s3.web.annotationsobject{}Rely either on the className or the annotation below but not both! If you want to use the className, set className: "nginx" and replace "nginx" by an Ingress controller name, examples here.
ingress.s3.web.enabledboolfalse
ingress.s3.web.hosts[0]object{"host":"*.web.garage.tld","paths":[{"path":"/","pathType":"Prefix"}]}wildcard website access with bucket name prefix
ingress.s3.web.hosts[1]object{"host":"mywebpage.example.com","paths":[{"path":"/","pathType":"Prefix"}]}specific bucket access with FQDN bucket
ingress.s3.web.labelsobject{}
ingress.s3.web.tlslist[]
initImage.pullPolicystring"IfNotPresent"
initImage.repositorystring"busybox"
initImage.tagstring"stable"
livenessProbeobject{}Specifies a livenessProbe
monitoring.metrics.enabledboolfalseIf true, a service for monitoring is created with a prometheus.io/scrape annotation
monitoring.metrics.serviceMonitor.enabledboolfalseIf true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator
monitoring.metrics.serviceMonitor.intervalstring"15s"
monitoring.metrics.serviceMonitor.labelsobject{}
monitoring.metrics.serviceMonitor.pathstring"/metrics"
monitoring.metrics.serviceMonitor.relabelingslist[]
monitoring.metrics.serviceMonitor.schemestring"http"
monitoring.metrics.serviceMonitor.scrapeTimeoutstring"10s"
monitoring.metrics.serviceMonitor.tlsConfigobject{}
monitoring.tracing.sinkstring""specify a sink endpoint for OpenTelemetry Traces, eg. http://localhost:4317
nameOverridestring""
nodeSelectorobject{}
persistence.data.hostPathstring"/var/lib/garage/data"
persistence.data.sizestring"100Mi"
persistence.enabledbooltrue
persistence.meta.hostPathstring"/var/lib/garage/meta"
persistence.meta.sizestring"100Mi"
podAnnotationsobject{}additional pod annotations
podSecurityContext.fsGroupint1000
podSecurityContext.fsGroupChangePolicystring"OnRootMismatch"
podSecurityContext.runAsGroupint1000
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint1000
priorityClassNamestring""Optional priority class name to assign to the pods. See https://kubernetes.io/docs/concepts/scheduling-eviction/pod-priority-preemption/
readinessProbeobject{}Specifies a readinessProbe
resourcesobject{}
securityContext.capabilitiesobject{"drop":["ALL"]}The default security context is heavily restricted, feel free to tune it to your requirements
securityContext.readOnlyRootFilesystembooltrue
service.admin.annotationsobject{}Annotations to add to the admin API service
service.admin.enabledboolfalseExpose admin API internally as a Kubernetes service. NOTE: the admin API is excluded by default as it is not consistent across nodes
service.annotationsobject{}Annotations to add to the service
service.s3.api.portint3900
service.s3.web.portint3902
service.typestring"ClusterIP"You can rely on any service to expose your cluster - ClusterIP (+ Ingress) - NodePort (+ Ingress) - LoadBalancer
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""The name of the service account to use. If not set and create is true, a name is generated using the fullname template
tolerationslist[]

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy garage with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has garage 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 chartgarage is pinned at v0.10.4 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