This commit is contained in:
2026-05-05 00:26:41 +02:00
commit 7587c86541
32 changed files with 33914 additions and 0 deletions

13
manifests/s3/cert.yaml Normal file
View File

@@ -0,0 +1,13 @@
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: rustfs-cert
namespace: s3storage # Ensure this matches your app's namespace
spec:
secretName: rustfs-tls-cert
issuerRef:
name: letsencrypt-prod # This must match your ClusterIssuer name
kind: ClusterIssuer
dnsNames:
- s3.milasholsting.dk
- console.s3.milasholsting.dk

View File

@@ -0,0 +1,8 @@
namespace: s3storage
resources:
- ./rustfs.yaml
- ./namespace.yaml
- ./rustfs-ingress.yaml
- ./rustfsChartConfig.yaml
# - ./cert.yaml

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: s3storage

View File

@@ -0,0 +1,26 @@
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: rustfs-ingress
namespace: s3storage
spec:
entryPoints:
- websecure
routes:
- match: Host(`s3.milasholsting.dk`)
kind: Rule
services:
- name: rustfs-svc
port: 9000
sticky:
cookie:
httpOnly: true
name: s3-routing
secure: true
- match: Host(`console.s3.milasholsting.dk`)
kind: Rule
services:
- name: rustfs-svc
port: 9001
tls:
secretName: rustfs-tls-cert

32
manifests/s3/rustfs.yaml Normal file
View File

@@ -0,0 +1,32 @@
apiVersion: helm.cattle.io/v1
kind: HelmChart
metadata:
name: rustfs
namespace: s3storage
spec:
repo: https://charts.rustfs.com
chart: rustfs
targetNamespace: s3storage
version: 0.0.82
valuesContent: |-
# Standalone mode: single pod with single PVC
mode:
standalone:
enabled: true
distributed:
enabled: false
# Optional: adjust storage sizes (default 256Mi each)
storageclass:
name: local-path
dataStorageSize: 15Gi
logStorageSize: 1Gi
ingress:
enabled: false
# Optional: change default credentials
secret:
rustfs:
access_key: rustfsadmin
secret_key: f82g6toxn5xlwac6cd8bjwfl

View File

@@ -0,0 +1,28 @@
apiVersion: helm.cattle.io/v1
kind: HelmChartConfig
metadata:
name: rustfs
namespace: s3storage
spec:
valuesContent: |-
# Standalone mode: single pod with single PVC
mode:
standalone:
enabled: true
distributed:
enabled: false
# Optional: adjust storage sizes (default 256Mi each)
storageclass:
name: local-path
dataStorageSize: 15Gi
logStorageSize: 1Gi
ingress:
enabled: false
# Optional: change default credentials
secret:
rustfs:
access_key: rustfsadmin
secret_key: f82g6toxn5xlwac6cd8bjwfl