diff --git a/apps/thelounge/pvc.yaml b/apps/thelounge/pvc.yaml index 379a0c4..8883b8a 100644 --- a/apps/thelounge/pvc.yaml +++ b/apps/thelounge/pvc.yaml @@ -1,11 +1,44 @@ 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 metadata: name: thelounge-pvc spec: accessModes: - ReadWriteOnce - storageClassName: longhorn + storageClassName: s3yuyuko resources: requests: - storage: 2Gi \ No newline at end of file + storage: 5G + volumeMode: Filesystem + volumeName: thelounge-pv + diff --git a/apps/thelounge/statefulset.yaml b/apps/thelounge/statefulset.yaml index e4895e2..3e59c8f 100644 --- a/apps/thelounge/statefulset.yaml +++ b/apps/thelounge/statefulset.yaml @@ -1,12 +1,11 @@ apiVersion: apps/v1 -kind: StatefulSet +kind: Deployment metadata: name: thelounge labels: app.kubernetes.io/name: thelounge spec: replicas: 1 - serviceName: "thelounge" selector: matchLabels: app.kubernetes.io/name: thelounge