aboutsummaryrefslogtreecommitdiff
path: root/script/helm/garage/values.yaml
diff options
context:
space:
mode:
authorPatrick Jahns <kontakt@patrickjahns.de>2022-11-16 20:23:10 +0100
committerMaximilien Richer <me@mricher.fr>2023-01-27 00:08:31 +0100
commit88b66c69a5d596ab967dba192ebf7742152fdfcc (patch)
tree3e31f397137e50593c05817d2519f95e8b30fa00 /script/helm/garage/values.yaml
parentf2c256cac4e599335d592dd580011cf15f278a51 (diff)
downloadgarage-88b66c69a5d596ab967dba192ebf7742152fdfcc.tar.gz
garage-88b66c69a5d596ab967dba192ebf7742152fdfcc.zip
feat(helm): allow to override the default configuration file
Signed-off-by: Patrick Jahns <kontakt@patrickjahns.de>
Diffstat (limited to 'script/helm/garage/values.yaml')
-rw-r--r--script/helm/garage/values.yaml29
1 files changed, 29 insertions, 0 deletions
diff --git a/script/helm/garage/values.yaml b/script/helm/garage/values.yaml
index 52f1910a..a60fa569 100644
--- a/script/helm/garage/values.yaml
+++ b/script/helm/garage/values.yaml
@@ -22,6 +22,35 @@ garage:
web:
rootDomain: ".web.garage.tld"
index: "index.html"
+ # Template for the garage configuration
+ # Values can be templated
+ # ref: https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/
+ garage.toml: |-
+ metadata_dir = "{{ .Values.garage.metadataDir }}"
+ data_dir = "{{ .Values.garage.dataDir }}"
+
+ replication_mode = "{{ .Values.garage.replicationMode }}"
+
+ rpc_bind_addr = "{{ .Values.garage.rpcBindAddr }}"
+ # rpc_secret will be populated by the init container from a k8s secret object
+ rpc_secret = "__RPC_SECRET_REPLACE__"
+
+ bootstrap_peers = {{ .Values.garage.bootstrapPeers }}
+
+ [kubernetes_discovery]
+ namespace = "{{ .Release.Namespace }}"
+ service_name = "{{ include "garage.fullname" . }}"
+ skip_crd = {{ .Values.garage.kubernetesSkipCrd }}
+
+ [s3_api]
+ s3_region = "{{ .Values.garage.s3.api.region }}"
+ api_bind_addr = "[::]:3900"
+ root_domain = "{{ .Values.garage.s3.api.rootDomain }}"
+
+ [s3_web]
+ bind_addr = "[::]:3902"
+ root_domain = "{{ .Values.garage.s3.web.rootDomain }}"
+ index = "{{ .Values.garage.s3.web.index }}"
# Data persistence
persistence: