apps(opengist): Moved PVC to s3yuyuko, and added livenessProbe to deployment

This commit is contained in:
2025-06-10 02:20:44 +02:00
parent 9de5fd9b05
commit 1452e42837
2 changed files with 40 additions and 8 deletions

View File

@@ -39,9 +39,9 @@ spec:
envFrom: envFrom:
- secretRef: - secretRef:
name: opengist-secret name: opengist-secret
# livenessProbe: livenessProbe:
# httpGet: httpGet:
# path: /healthcheck path: /healthcheck
# port: 6157 port: 6157
# initialDelaySeconds: 3 initialDelaySeconds: 3
# periodSeconds: 3 periodSeconds: 3

View File

@@ -1,11 +1,43 @@
apiVersion: v1 apiVersion: v1
kind: PersistentVolume
metadata:
name: opengist-pv
spec:
storageClassName: s3yuyuko
capacity:
storage: 5G
accessModes:
- ReadWriteOnce
claimRef:
namespace: default
name: opengist-data-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 -o allow_other --uid 1000 --gid 1000
volumeHandle: opengist-pv
---
apiVersion: v1
kind: PersistentVolumeClaim kind: PersistentVolumeClaim
metadata: metadata:
name: opengist-data-pvc name: opengist-data-pvc
spec: spec:
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
storageClassName: longhorn storageClassName: s3yuyuko
resources: resources:
requests: requests:
storage: 2Gi storage: 5G
volumeMode: Filesystem
volumeName: opengist-pv