diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml index 159fe3145..5f12f27bb 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/app-templates/seichi-debug-minecraft-on-seichiassist-pr/templates/mariadb/mariadb.yaml @@ -8,5 +8,13 @@ spec: port: 3306 + volumeClaimTemplate: + resources: + requests: + storage: 5Gi + storageClassName: synology-iscsi-storage-temp + accessModes: + - ReadWriteOnce + service: type: ClusterIP diff --git a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/synology-csi-storageclass/storageclass.yaml b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/synology-csi-storageclass/storageclass.yaml index f4cb015c2..1a74ec5dc 100644 --- a/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/synology-csi-storageclass/storageclass.yaml +++ b/seichi-onp-k8s/manifests/seichi-kubernetes/apps/cluster-wide-apps/synology-csi-storageclass/storageclass.yaml @@ -12,3 +12,18 @@ parameters: formatOptions: '--nodiscard' reclaimPolicy: Retain allowVolumeExpansion: true +--- +apiVersion: storage.k8s.io/v1 +kind: StorageClass +metadata: + name: synology-iscsi-storage-temp + annotations: + storageclass.kubernetes.io/is-default-class: "true" +provisioner: csi.san.synology.com +parameters: + dsm: '192.168.16.240' + location: '/volume1' + csi.storage.k8s.io/fstype: 'btrfs' + formatOptions: '--nodiscard' +reclaimPolicy: Delete +allowVolumeExpansion: true