init
This commit is contained in:
13
manifests/s3/cert.yaml
Normal file
13
manifests/s3/cert.yaml
Normal 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
|
||||
8
manifests/s3/kustomization.yaml
Normal file
8
manifests/s3/kustomization.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
namespace: s3storage
|
||||
|
||||
resources:
|
||||
- ./rustfs.yaml
|
||||
- ./namespace.yaml
|
||||
- ./rustfs-ingress.yaml
|
||||
- ./rustfsChartConfig.yaml
|
||||
# - ./cert.yaml
|
||||
4
manifests/s3/namespace.yaml
Normal file
4
manifests/s3/namespace.yaml
Normal file
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: s3storage
|
||||
26
manifests/s3/rustfs-ingress.yaml
Normal file
26
manifests/s3/rustfs-ingress.yaml
Normal 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
32
manifests/s3/rustfs.yaml
Normal 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
|
||||
|
||||
28
manifests/s3/rustfsChartConfig.yaml
Normal file
28
manifests/s3/rustfsChartConfig.yaml
Normal 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
|
||||
Reference in New Issue
Block a user