Files
gitops/argocd-apps/services/garage.yaml
T

91 lines
2.5 KiB
YAML

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: "3"
name: garage
namespace: argocd
spec:
destination:
namespace: garage
server: https://kubernetes.default.svc
project: default
sources:
- repoURL: https://git.deuxfleurs.fr/Deuxfleurs/garage.git
targetRevision: v2.4.1
path: script/helm/garage
helm:
values: |
garage:
singleNode: true
existingRpcSecret: garage-secrets
noClusterRole: true
# No discovery is needed for a single node.
garageTomlString: |
metadata_dir = "/mnt/meta"
data_dir = "/mnt/data"
db_engine = "sqlite"
metadata_fsync = true
data_fsync = true
replication_factor = 1
rpc_bind_addr = "127.0.0.1:3901"
rpc_public_addr = "127.0.0.1:3901"
rpc_secret = "__RPC_SECRET_REPLACE__"
[s3_api]
s3_region = "garage"
api_bind_addr = "0.0.0.0:3900"
[s3_web]
bind_addr = "0.0.0.0:3902"
# Required; a bucket's full name also works as the Host
root_domain = ".web.garage.internal"
index = "index.html"
[admin]
api_bind_addr = "0.0.0.0:3903"
metrics_require_token = true
image:
repository: dxflrs/garage
initImage:
tag: "1.37.0"
persistence:
meta:
storageClass: local-path
size: 1Gi
data:
storageClass: local-path
size: 9Gi
podSecurityContext:
seccompProfile:
type: RuntimeDefault
securityContext:
allowPrivilegeEscalation: false
readinessProbe:
httpGet:
path: /health
port: admin
timeoutSeconds: 3
livenessProbe:
tcpSocket:
port: s3-api
initialDelaySeconds: 60
periodSeconds: 20
timeoutSeconds: 3
resources:
requests:
cpu: 100m
memory: 256Mi
limits:
memory: 1Gi
- path: apps/garage
repoURL: https://gitea.whyredfire.dev/whyredfire/gitops.git
targetRevision: main
syncPolicy:
automated:
prune: true
selfHeal: true
syncOptions:
- CreateNamespace=true
- ServerSideApply=true