garage

by wittdennis

Helm chartv2.6.0App v2.6.0MITVerified 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
Dennis Witthttps://github.com/wittdennis

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
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{}
extraVolumeMountsobject{}
extraVolumesobject{}
fullnameOverridestring""
garage.additionalTopLevelConfigstring""Additional configuration to append to garage.toml. Use a multi-line string for custom config. Example: additionalTopLevelConfig:
garage.adminobject{"token":{"create":false,"secret":{"create":true,"name":"","value":""}}}Configuration for the Admin API
garage.admin.tokenobject{"create":false,"secret":{"create":true,"name":"","value":""}}Settings for the API token
garage.admin.token.createboolfalseUsed to control if admin token should be created. Needed for API in garage < v2.0. Not recommended for garage >= v2.0, use the more flexible dynamic admin token system instead
garage.admin.token.secretobject{"create":true,"name":"","value":""}Kubernetes secret configuration
garage.admin.token.secret.createbooltrueFlag to control if a token secret should be created during deployment
garage.admin.token.secret.namestring""Name of the admin token secret. If you want to use a pre-existing kubernetes secret use the name of an already existing secret and set rpc.secret.create to false. Secret has to contain a 'token' value
garage.admin.token.secret.valuestring""If not given, a random secret will be generated and stored in a Secret object
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 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.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 ressources
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.replicationFactorstring"3"Default to 3 replicas, see the replication_factor section at https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#replication_factor
garage.rpc.bindAddrstring"[::]:3901"
garage.rpc.secret.createbooltrueFlag to control if a rpc kubernetes secret should be created during deployment
garage.rpc.secret.namestring""Name of the rpc secret. If you want to use a pre-existing kubernetes secret use the name of an already existing secret and set rpc.secret.create to false. Secret has to contain a 'rpcSecret' value
garage.rpc.secret.valuestring""If not given, a random secret will be generated and stored in a Secret object
garage.s3.api.publicEndpointstring""Publicly reachable endpoint including scheme (e.g. https://s3.garage.tld). Used for generated object URLs and connection parameters reported by the admin API https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#s3_api_public_endpoint
garage.s3.api.publicEndpointPathStylestringnilAdvertise path-style URLs for the public endpoint. Must not be false when rootDomain is empty https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#s3_api_public_endpoint_path_style
garage.s3.api.regionstring"garage"
garage.s3.api.rootDomainstring".s3.garage.tld"Suffix for vhost-style bucket access. Empty disables vhost-style requests
garage.s3.web.indexstring"index.html"
garage.s3.web.rootDomainstring".web.garage.tld"Suffix for bucket hostnames. Empty requires the bucket name to match the requested hostname
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.adminobject{"annotations":{},"enabled":false,"hosts":[{"host":"admin.garage.tld","paths":[{"path":"/","pathType":"Prefix"}]}],"labels":{},"tls":[]}Ingress for the admin API and web admin UI. Creates the admin service when enabled. Also exposes the unauthenticated /health, /check and, without metrics_token, /metrics endpoints
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[]
livenessProbeobject{}Specifies a livenessProbe
monitoring.grafanaDashboard.annotationsobject{}
monitoring.grafanaDashboard.enabledboolfalseIf enabled deploys the grafana dashboard as configmap
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.data.storageClassstringnilThis would classically be a "slow" storage type like HDDs
persistence.enabledbooltrue
persistence.meta.hostPathstring"/var/lib/garage/meta"
persistence.meta.sizestring"100Mi"
persistence.meta.storageClassstringnilUse a storage class with a preferably fast storage type
podAnnotationsobject{}additonal pod annotations
podDisruptionBudgetoptional{"enabled":false,"maxUnavailable":1}PodDisruptionBudget (PDB) for max unavailable pod
podSecurityContext.fsGroupint1000
podSecurityContext.fsGroupChangePolicystring"OnRootMismatch"
podSecurityContext.runAsGroupint1000
podSecurityContext.runAsNonRootbooltrue
podSecurityContext.runAsUserint1000
readinessProbeobject{}Specifies a readinessProbe
resourcesobject{}
routesobject{"admin":{"additionalRules":{},"annotations":{},"enabled":false,"filters":[],"hostnames":["admin.garage.tld"],"labels":{},"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[]},"s3":{"api":{"additionalRules":{},"annotations":{},"enabled":false,"filters":[],"hostnames":["s3.garage.ltd","*.s3.garage.ltd"],"labels":{},"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[]},"web":{"additionalRules":{},"annotations":{},"enabled":false,"filters":[],"hostnames":["*.web.garage.tld"],"labels":{},"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[]}}}Route configuration for Gateway API
routes.adminobject{"additionalRules":{},"annotations":{},"enabled":false,"filters":[],"hostnames":["admin.garage.tld"],"labels":{},"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[]}Route for the admin API and web admin UI. Creates the admin service when enabled
routes.admin.additionalRulesobject{}Any custom rule you want to specify
routes.admin.annotationsobject{}Additional annotations for the HTTPRoute
routes.admin.enabledboolfalseFlag to control if HTTP route should be created
routes.admin.filterslist[]Filter that should be added to the default rule
routes.admin.hostnameslist["admin.garage.tld"]Hostnames of the HTTPRoute
routes.admin.labelsobject{}Additional labels for the HTTPRoute
routes.admin.matcheslist[{"path":{"type":"PathPrefix","value":"/"}}]Matches for the default rule
routes.admin.parentRefslist[]Gateway reference that the HTTPRoute should bind against
routes.s3.apiobject{"additionalRules":{},"annotations":{},"enabled":false,"filters":[],"hostnames":["s3.garage.ltd","*.s3.garage.ltd"],"labels":{},"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[]}Creates route for the S3 api
routes.s3.api.additionalRulesobject{}Any custom rule you want to specify
routes.s3.api.annotationsobject{}Additional annotations for the HTTPRoute
routes.s3.api.enabledboolfalseFlag to control if HTTP route should be created
routes.s3.api.filterslist[]Filter that should be added to the default rule
routes.s3.api.hostnameslist["s3.garage.ltd","*.s3.garage.ltd"]Hostnames of the HTTPRoute
routes.s3.api.labelsobject{}Additional labels for the HTTPRoute
routes.s3.api.matcheslist[{"path":{"type":"PathPrefix","value":"/"}}]Matches for the default rule
routes.s3.api.parentRefslist[]Gateway reference that the HTTPRoute should bind against
routes.s3.webobject{"additionalRules":{},"annotations":{},"enabled":false,"filters":[],"hostnames":["*.web.garage.tld"],"labels":{},"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[]}Route for Web buckets
routes.s3.web.additionalRulesobject{}Any custom rule you want to specify
routes.s3.web.annotationsobject{}Additional annotations for the HTTPRoute
routes.s3.web.enabledboolfalseFlag to control

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 v2.6.0 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