feat(apps): Expose garage service to s3.whyredfire.dev
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
annotations:
|
||||
argocd.argoproj.io/sync-wave: "2"
|
||||
name: garage-s3
|
||||
namespace: garage
|
||||
spec:
|
||||
hostnames:
|
||||
- s3.whyredfire.dev
|
||||
parentRefs:
|
||||
- kind: Gateway
|
||||
name: traefik-gateway
|
||||
namespace: traefik
|
||||
sectionName: websecure
|
||||
rules:
|
||||
- backendRefs:
|
||||
- name: garage
|
||||
port: 3900
|
||||
matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: /
|
||||
@@ -1,5 +1,6 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- httproute-s3.yaml
|
||||
- sealed-secret.yaml
|
||||
- service-admin.yaml
|
||||
|
||||
@@ -20,7 +20,7 @@ spec:
|
||||
singleNode: true
|
||||
existingRpcSecret: garage-secrets
|
||||
noClusterRole: true
|
||||
# No discovery or website listener is needed for standalone S3.
|
||||
# No discovery is needed for a single node.
|
||||
garageTomlString: |
|
||||
metadata_dir = "/mnt/meta"
|
||||
data_dir = "/mnt/data"
|
||||
@@ -36,6 +36,12 @@ spec:
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user