2022-06-20 12:52:43 +00:00
|
|
|
# Default values for garage.
|
|
|
|
# This is a YAML-formatted file.
|
|
|
|
# Declare variables to be passed into your templates.
|
|
|
|
|
|
|
|
# Garage configuration. These values go to garage.toml
|
|
|
|
garage:
|
2022-08-10 23:35:41 +00:00
|
|
|
# Default to 3 replicas, see the replication_mode section at
|
|
|
|
# https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/
|
2022-06-20 12:52:43 +00:00
|
|
|
replicationMode: "3"
|
|
|
|
rpcBindAddr: "[::]:3901"
|
2022-08-10 23:35:41 +00:00
|
|
|
# If not given, a random secret will be generated and stored in a Secret object
|
2022-06-20 15:49:38 +00:00
|
|
|
rpcSecret: ""
|
2022-08-10 23:35:41 +00:00
|
|
|
# This is not required if you use the integrated kubernetes discovery
|
2022-06-20 12:52:43 +00:00
|
|
|
bootstrapPeers: []
|
|
|
|
kubernetesSkipCrd: false
|
|
|
|
s3:
|
|
|
|
api:
|
|
|
|
region: "garage"
|
|
|
|
rootDomain: ".s3.garage.tld"
|
|
|
|
web:
|
|
|
|
rootDomain: ".web.garage.tld"
|
|
|
|
index: "index.html"
|
2022-11-16 19:23:10 +00:00
|
|
|
# Template for the garage configuration
|
|
|
|
# Values can be templated
|
|
|
|
# ref: https://garagehq.deuxfleurs.fr/documentation/reference-manual/configuration/
|
|
|
|
garage.toml: |-
|
2022-11-16 19:36:20 +00:00
|
|
|
metadata_dir = "/mnt/meta"
|
|
|
|
data_dir = "/mnt/data"
|
2022-11-16 19:23:10 +00:00
|
|
|
|
|
|
|
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 }}"
|
2022-11-17 22:33:00 +00:00
|
|
|
|
|
|
|
[admin]
|
|
|
|
api_bind_addr = "[::]:3903"
|
|
|
|
{{- if .Values.monitoring.tracing.sink }}
|
|
|
|
trace_sink = "{{ .Values.monitoring.tracing.sink }}"
|
|
|
|
{{- end }}
|
2022-06-20 12:52:43 +00:00
|
|
|
|
|
|
|
# Data persistence
|
|
|
|
persistence:
|
|
|
|
enabled: true
|
|
|
|
meta:
|
2022-08-10 23:35:41 +00:00
|
|
|
# storageClass: "fast-storage-class"
|
2022-06-20 12:52:43 +00:00
|
|
|
size: 100Mi
|
2022-10-29 19:07:02 +00:00
|
|
|
# used only for daemon sets
|
|
|
|
hostPath: /var/lib/garage/meta
|
2022-06-20 12:52:43 +00:00
|
|
|
data:
|
2022-08-10 23:35:41 +00:00
|
|
|
# storageClass: "slow-storage-class"
|
2022-06-20 12:52:43 +00:00
|
|
|
size: 100Mi
|
2022-10-29 19:07:02 +00:00
|
|
|
# used only for daemon sets
|
|
|
|
hostPath: /var/lib/garage/data
|
2022-06-20 12:52:43 +00:00
|
|
|
|
2022-10-29 19:07:02 +00:00
|
|
|
# Deployment configuration
|
|
|
|
deployment:
|
|
|
|
# Switchable to DaemonSet
|
|
|
|
kind: StatefulSet
|
|
|
|
# Number of StatefulSet replicas/garage nodes to start
|
|
|
|
replicaCount: 3
|
2022-06-20 12:52:43 +00:00
|
|
|
|
|
|
|
image:
|
|
|
|
repository: dxflrs/amd64_garage
|
2022-08-10 23:35:41 +00:00
|
|
|
# please prefer using the chart version and not this tag
|
|
|
|
tag: ""
|
2022-06-20 12:52:43 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
2022-11-16 20:53:28 +00:00
|
|
|
initImage:
|
|
|
|
repository: busybox
|
2022-12-28 17:28:03 +00:00
|
|
|
tag: stable
|
2022-11-16 20:53:28 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
2022-06-20 12:52:43 +00:00
|
|
|
imagePullSecrets: []
|
|
|
|
nameOverride: ""
|
|
|
|
fullnameOverride: ""
|
|
|
|
|
|
|
|
serviceAccount:
|
|
|
|
# Specifies whether a service account should be created
|
|
|
|
create: true
|
|
|
|
# Annotations to add to the service account
|
|
|
|
annotations: {}
|
|
|
|
# The name of the service account to use.
|
|
|
|
# If not set and create is true, a name is generated using the fullname template
|
|
|
|
name: ""
|
|
|
|
|
|
|
|
podAnnotations: {}
|
|
|
|
|
2022-11-16 20:46:43 +00:00
|
|
|
podSecurityContext:
|
|
|
|
runAsUser: 1000
|
|
|
|
runAsGroup: 1000
|
|
|
|
fsGroup: 1000
|
|
|
|
runAsNonRoot: true
|
2022-06-20 12:52:43 +00:00
|
|
|
|
2022-08-10 23:35:41 +00:00
|
|
|
securityContext:
|
|
|
|
# The default security context is heavily restricted
|
|
|
|
# feel free to tune it to your requirements
|
|
|
|
capabilities:
|
|
|
|
drop:
|
2022-11-16 20:46:43 +00:00
|
|
|
- ALL
|
2022-08-10 23:35:41 +00:00
|
|
|
readOnlyRootFilesystem: true
|
2022-06-20 12:52:43 +00:00
|
|
|
|
|
|
|
service:
|
2022-08-10 23:35:41 +00:00
|
|
|
# You can rely on any service to expose your cluster
|
|
|
|
# - ClusterIP (+ Ingress)
|
|
|
|
# - NodePort (+ Ingress)
|
|
|
|
# - LoadBalancer
|
2022-06-20 12:52:43 +00:00
|
|
|
type: ClusterIP
|
|
|
|
s3:
|
|
|
|
api:
|
|
|
|
port: 3900
|
|
|
|
web:
|
|
|
|
port: 3902
|
2022-08-10 23:35:41 +00:00
|
|
|
# NOTE: the admin API is excluded for now as it is not consistent across nodes
|
2022-11-17 22:33:00 +00:00
|
|
|
|
2022-06-20 12:52:43 +00:00
|
|
|
ingress:
|
|
|
|
s3:
|
|
|
|
api:
|
2022-11-16 11:18:11 +00:00
|
|
|
enabled: false
|
2022-08-10 23:35:41 +00:00
|
|
|
# Rely either on the className or the annotation below but not both
|
|
|
|
# replace "nginx" by an Ingress controller
|
|
|
|
# you can find examples here https://kubernetes.io/docs/concepts/services-networking/ingress-controllers
|
2022-11-16 11:18:11 +00:00
|
|
|
# className: "nginx"
|
|
|
|
annotations: {}
|
2022-08-10 23:35:41 +00:00
|
|
|
# kubernetes.io/ingress.class: "nginx"
|
2022-06-20 12:52:43 +00:00
|
|
|
# kubernetes.io/tls-acme: "true"
|
2022-11-16 11:21:18 +00:00
|
|
|
labels: {}
|
2022-06-20 12:52:43 +00:00
|
|
|
hosts:
|
2022-08-10 23:35:41 +00:00
|
|
|
- host: "s3.garage.tld" # garage S3 API endpoint
|
2022-06-20 12:52:43 +00:00
|
|
|
paths:
|
|
|
|
- path: /
|
2022-08-10 23:35:41 +00:00
|
|
|
pathType: Prefix
|
|
|
|
- host: "*.s3.garage.tld" # garage S3 API endpoint, DNS style bucket access
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
2022-06-20 12:52:43 +00:00
|
|
|
tls: []
|
2022-08-10 23:35:41 +00:00
|
|
|
# - secretName: my-garage-cluster-tls
|
2022-06-20 12:52:43 +00:00
|
|
|
# hosts:
|
2022-08-10 23:35:41 +00:00
|
|
|
# - kubernetes.docker.internal
|
2022-06-20 12:52:43 +00:00
|
|
|
web:
|
2022-11-16 11:18:11 +00:00
|
|
|
enabled: false
|
|
|
|
# Rely either on the className or the annotation below but not both
|
|
|
|
# replace "nginx" by an Ingress controller
|
|
|
|
# you can find examples here https://kubernetes.io/docs/concepts/services-networking/ingress-controllers
|
|
|
|
# className: "nginx"
|
2022-06-20 12:52:43 +00:00
|
|
|
annotations: {}
|
|
|
|
# kubernetes.io/ingress.class: nginx
|
|
|
|
# kubernetes.io/tls-acme: "true"
|
2022-11-16 11:21:18 +00:00
|
|
|
labels: {}
|
2022-06-20 12:52:43 +00:00
|
|
|
hosts:
|
2022-08-10 23:35:41 +00:00
|
|
|
- host: "*.web.garage.tld" # wildcard website access with bucket name prefix
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
|
|
|
- host: "mywebpage.example.com" # specific bucket access with FQDN bucket
|
|
|
|
paths:
|
|
|
|
- path: /
|
|
|
|
pathType: Prefix
|
2022-06-20 12:52:43 +00:00
|
|
|
tls: []
|
2022-08-10 23:35:41 +00:00
|
|
|
# - secretName: my-garage-cluster-tls
|
2022-06-20 12:52:43 +00:00
|
|
|
# hosts:
|
2022-08-10 23:35:41 +00:00
|
|
|
# - kubernetes.docker.internal
|
2022-06-20 12:52:43 +00:00
|
|
|
|
|
|
|
resources: {}
|
2022-08-10 23:35:41 +00:00
|
|
|
# The following are indicative for a small-size deployement, for anything serious double them.
|
2022-06-20 12:52:43 +00:00
|
|
|
# limits:
|
|
|
|
# cpu: 100m
|
2022-08-10 23:35:41 +00:00
|
|
|
# memory: 1024Mi
|
2022-06-20 12:52:43 +00:00
|
|
|
# requests:
|
|
|
|
# cpu: 100m
|
2022-08-10 23:35:41 +00:00
|
|
|
# memory: 512Mi
|
2022-06-20 12:52:43 +00:00
|
|
|
|
|
|
|
nodeSelector: {}
|
|
|
|
|
|
|
|
tolerations: []
|
|
|
|
|
|
|
|
affinity: {}
|
2022-11-17 22:33:00 +00:00
|
|
|
|
|
|
|
monitoring:
|
|
|
|
metrics:
|
|
|
|
# If true, a service for monitoring is created with a prometheus.io/scrape annotation
|
|
|
|
enabled: false
|
|
|
|
serviceMonitor:
|
|
|
|
# If true, a ServiceMonitor CRD is created for a prometheus operator
|
|
|
|
# https://github.com/coreos/prometheus-operator
|
|
|
|
enabled: false
|
|
|
|
path: /metrics
|
|
|
|
# namespace: monitoring (defaults to use the namespace this chart is deployed to)
|
|
|
|
labels: {}
|
|
|
|
interval: 15s
|
|
|
|
scheme: http
|
|
|
|
tlsConfig: {}
|
|
|
|
scrapeTimeout: 10s
|
|
|
|
relabelings: []
|
|
|
|
tracing:
|
|
|
|
sink: ""
|