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
| Name | Url | |
|---|---|---|
| Dennis Witt | https://github.com/wittdennis |
Source Code
- https://github.com/wittdennis/charts/tree/main/garage
- https://git.deuxfleurs.fr/Deuxfleurs/garage.git
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | |
| commonLabels | object | {} | Additional labels to add to all resources created by this chart |
| deployment.kind | string | "StatefulSet" | Switchable to DaemonSet |
| deployment.podManagementPolicy | string | "OrderedReady" | If using statefulset, allow Parallel or OrderedReady (default) |
| deployment.replicaCount | int | 3 | Number of StatefulSet replicas/garage nodes to start |
| environment | object | {} | |
| extraVolumeMounts | object | {} | |
| extraVolumes | object | {} | |
| fullnameOverride | string | "" | |
| garage.additionalTopLevelConfig | string | "" | Additional configuration to append to garage.toml. Use a multi-line string for custom config. Example: additionalTopLevelConfig: |
| garage.admin | object | {"token":{"create":false,"secret":{"create":true,"name":"","value":""}}} | Configuration for the Admin API |
| garage.admin.token | object | {"create":false,"secret":{"create":true,"name":"","value":""}} | Settings for the API token |
| garage.admin.token.create | bool | false | Used 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.secret | object | {"create":true,"name":"","value":""} | Kubernetes secret configuration |
| garage.admin.token.secret.create | bool | true | Flag to control if a token secret should be created during deployment |
| garage.admin.token.secret.name | string | "" | 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.value | string | "" | If not given, a random secret will be generated and stored in a Secret object |
| garage.blockSize | string | "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.bootstrapPeers | list | [] | This is not required if you use the integrated kubernetes discovery |
| garage.compressionLevel | string | "1" | zstd compression level of stored blocks https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#compression_level |
| garage.consistencyMode | string | "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.dbEngine | string | "lmdb" | Can be changed for better performance on certain systems https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#db_engine |
| garage.existingConfigMap | string | "" | if not empty string, allow using an existing ConfigMap for the garage.toml, if set, ignores garage.toml |
| garage.garageTomlString | string | "" | 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.kubernetesSkipCrd | bool | false | Set 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.metadataAutoSnapshotInterval | string | "" | 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.replicationFactor | string | "3" | Default to 3 replicas, see the replication_factor section at https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/#replication_factor |
| garage.rpc.bindAddr | string | "[::]:3901" | |
| garage.rpc.secret.create | bool | true | Flag to control if a rpc kubernetes secret should be created during deployment |
| garage.rpc.secret.name | string | "" | 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.value | string | "" | If not given, a random secret will be generated and stored in a Secret object |
| garage.s3.api.publicEndpoint | string | "" | 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.publicEndpointPathStyle | string | nil | Advertise 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.region | string | "garage" | |
| garage.s3.api.rootDomain | string | ".s3.garage.tld" | Suffix for vhost-style bucket access. Empty disables vhost-style requests |
| garage.s3.web.index | string | "index.html" | |
| garage.s3.web.rootDomain | string | ".web.garage.tld" | Suffix for bucket hostnames. Empty requires the bucket name to match the requested hostname |
| image.pullPolicy | string | "IfNotPresent" | |
| image.repository | string | "dxflrs/amd64_garage" | default to amd64 docker image |
| image.tag | string | "" | set the image tag, please prefer using the chart version and not this to avoid compatibility issues |
| imagePullSecrets | list | [] | set if you need credentials to pull your custom image |
| ingress.admin | object | {"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.annotations | object | {} | 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.enabled | bool | false | |
| 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.labels | object | {} | |
| ingress.s3.api.tls | list | [] | |
| ingress.s3.web.annotations | object | {} | 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.enabled | bool | false | |
| 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.labels | object | {} | |
| ingress.s3.web.tls | list | [] | |
| livenessProbe | object | {} | Specifies a livenessProbe |
| monitoring.grafanaDashboard.annotations | object | {} | |
| monitoring.grafanaDashboard.enabled | bool | false | If enabled deploys the grafana dashboard as configmap |
| monitoring.metrics.enabled | bool | false | If true, a service for monitoring is created with a prometheus.io/scrape annotation |
| monitoring.metrics.serviceMonitor.enabled | bool | false | If true, a ServiceMonitor CRD is created for a prometheus operator https://github.com/coreos/prometheus-operator |
| monitoring.metrics.serviceMonitor.interval | string | "15s" | |
| monitoring.metrics.serviceMonitor.labels | object | {} | |
| monitoring.metrics.serviceMonitor.path | string | "/metrics" | |
| monitoring.metrics.serviceMonitor.relabelings | list | [] | |
| monitoring.metrics.serviceMonitor.scheme | string | "http" | |
| monitoring.metrics.serviceMonitor.scrapeTimeout | string | "10s" | |
| monitoring.metrics.serviceMonitor.tlsConfig | object | {} | |
| monitoring.tracing.sink | string | "" | specify a sink endpoint for OpenTelemetry Traces, eg. http://localhost:4317 |
| nameOverride | string | "" | |
| nodeSelector | object | {} | |
| persistence.data.hostPath | string | "/var/lib/garage/data" | |
| persistence.data.size | string | "100Mi" | |
| persistence.data.storageClass | string | nil | This would classically be a "slow" storage type like HDDs |
| persistence.enabled | bool | true | |
| persistence.meta.hostPath | string | "/var/lib/garage/meta" | |
| persistence.meta.size | string | "100Mi" | |
| persistence.meta.storageClass | string | nil | Use a storage class with a preferably fast storage type |
| podAnnotations | object | {} | additonal pod annotations |
| podDisruptionBudget | optional | {"enabled":false,"maxUnavailable":1} | PodDisruptionBudget (PDB) for max unavailable pod |
| podSecurityContext.fsGroup | int | 1000 | |
| podSecurityContext.fsGroupChangePolicy | string | "OnRootMismatch" | |
| podSecurityContext.runAsGroup | int | 1000 | |
| podSecurityContext.runAsNonRoot | bool | true | |
| podSecurityContext.runAsUser | int | 1000 | |
| readinessProbe | object | {} | Specifies a readinessProbe |
| resources | object | {} | |
| routes | object | {"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.admin | object | {"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.additionalRules | object | {} | Any custom rule you want to specify |
| routes.admin.annotations | object | {} | Additional annotations for the HTTPRoute |
| routes.admin.enabled | bool | false | Flag to control if HTTP route should be created |
| routes.admin.filters | list | [] | Filter that should be added to the default rule |
| routes.admin.hostnames | list | ["admin.garage.tld"] | Hostnames of the HTTPRoute |
| routes.admin.labels | object | {} | Additional labels for the HTTPRoute |
| routes.admin.matches | list | [{"path":{"type":"PathPrefix","value":"/"}}] | Matches for the default rule |
| routes.admin.parentRefs | list | [] | Gateway reference that the HTTPRoute should bind against |
| routes.s3.api | object | {"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.additionalRules | object | {} | Any custom rule you want to specify |
| routes.s3.api.annotations | object | {} | Additional annotations for the HTTPRoute |
| routes.s3.api.enabled | bool | false | Flag to control if HTTP route should be created |
| routes.s3.api.filters | list | [] | Filter that should be added to the default rule |
| routes.s3.api.hostnames | list | ["s3.garage.ltd","*.s3.garage.ltd"] | Hostnames of the HTTPRoute |
| routes.s3.api.labels | object | {} | Additional labels for the HTTPRoute |
| routes.s3.api.matches | list | [{"path":{"type":"PathPrefix","value":"/"}}] | Matches for the default rule |
| routes.s3.api.parentRefs | list | [] | Gateway reference that the HTTPRoute should bind against |
| routes.s3.web | object | {"additionalRules":{},"annotations":{},"enabled":false,"filters":[],"hostnames":["*.web.garage.tld"],"labels":{},"matches":[{"path":{"type":"PathPrefix","value":"/"}}],"parentRefs":[]} | Route for Web buckets |
| routes.s3.web.additionalRules | object | {} | Any custom rule you want to specify |
| routes.s3.web.annotations | object | {} | Additional annotations for the HTTPRoute |
| routes.s3.web.enabled | bool | false | Flag 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartgarage is pinned at v2.6.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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