apps(thelounge): Changed storage to s3yuyuko

This commit is contained in:
2025-06-06 11:17:01 +02:00
parent 618f430d2f
commit af4f700db3
2 changed files with 36 additions and 4 deletions

View File

@@ -1,11 +1,44 @@
apiVersion: v1 apiVersion: v1
kind: PersistentVolume
metadata:
name: thelounge-pv
spec:
storageClassName: s3yuyuko
capacity:
storage: 5G
accessModes:
- ReadWriteOnce
claimRef:
namespace: default
name: thelounge-pvc
csi:
driver: ru.yandex.s3.csi
controllerPublishSecretRef:
name: csi-yuyuko-secret
namespace: kube-system
nodePublishSecretRef:
name: csi-yuyuko-secret
namespace: kube-system
nodeStageSecretRef:
name: csi-yuyuko-secret
namespace: kube-system
volumeAttributes:
capacity: 5G
mounter: s3fs-fuse
options: --memory-limit 1000 --dir-mode 0777 --file-mode 0666
volumeHandle: thelounge-pv
---
apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: thelounge-pvc name: thelounge-pvc
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
storageClassName: longhorn storageClassName: s3yuyuko
resources: resources:
requests: requests:
storage: 2Gi storage: 5G
volumeMode: Filesystem
volumeName: thelounge-pv

View File

@@ -1,12 +1,11 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: StatefulSet kind: Deployment
metadata: metadata:
name: thelounge name: thelounge
labels: labels:
app.kubernetes.io/name: thelounge app.kubernetes.io/name: thelounge
spec: spec:
replicas: 1 replicas: 1
serviceName: "thelounge"
selector: selector:
matchLabels: matchLabels:
app.kubernetes.io/name: thelounge app.kubernetes.io/name: thelounge