From 9d0fa02ef0cb7a2859fae2067a0d372343b8b258 Mon Sep 17 00:00:00 2001 From: Huang Junxiang Date: Mon, 24 Mar 2025 14:28:17 +0800 Subject: [PATCH] feat: helm support custom storageClassName (#486) --- manual/setup/helm_chart_cluster.md | 11 ++++++++++- manual/setup/helm_chart_single_node.md | 11 ++++++++++- 2 files changed, 20 insertions(+), 2 deletions(-) diff --git a/manual/setup/helm_chart_cluster.md b/manual/setup/helm_chart_cluster.md index cd875c0c..6030674f 100644 --- a/manual/setup/helm_chart_cluster.md +++ b/manual/setup/helm_chart_cluster.md @@ -50,7 +50,16 @@ After installation, you need to start the k8s control plane service on each node ``` !!! tip - It is not necessary to use the `my-values.yaml` we provided (i.e., you can create an empty `my-values.yaml` and add required field, as others have defined default values in our chart), because it destroys the flexibility of deploying with Helm, but it contains some formats of how Seafile Helm Chart reads these configurations, as well as all the environment variables and secret variables that can be read directly. + - It is not necessary to use the `my-values.yaml` we provided (i.e., you can create an empty `my-values.yaml` and add required field, as others have defined default values in our chart), because it destroys the flexibility of deploying with Helm, but it contains some formats of how Seafile Helm Chart reads these configurations, as well as all the environment variables and secret variables that can be read directly. + - In addition, you can also create a custom ***storageClassName*** for the persistence directory used by Seafile. You only need to specify `storageClassName` in the `seafile.config.seafileDataVolume` object in `my-values.yaml`: + + ```yaml + seafile: + configs: + seafileDataVolume: + storageClassName: + ... + ``` 4. Then install the chart use the following command: diff --git a/manual/setup/helm_chart_single_node.md b/manual/setup/helm_chart_single_node.md index 402781a2..ef688215 100644 --- a/manual/setup/helm_chart_single_node.md +++ b/manual/setup/helm_chart_single_node.md @@ -65,7 +65,16 @@ Please refer [here](./system_requirements.md) for the details of system requirem ``` !!! tip - It is not necessary to use the `my-values.yaml` we provided (i.e., you can create an empty `my-values.yaml` and add required field, as others have defined default values in our chart), because it destroys the flexibility of deploying with Helm, but it contains some formats of how Seafile Helm Chart reads these configurations, as well as all the environment variables and secret variables that can be read directly. + - It is not necessary to use the `my-values.yaml` we provided (i.e., you can create an empty `my-values.yaml` and add required field, as others have defined default values in our chart), because it destroys the flexibility of deploying with Helm, but it contains some formats of how Seafile Helm Chart reads these configurations, as well as all the environment variables and secret variables that can be read directly. + - In addition, you can also create a custom ***storageClassName*** for the persistence directory used by Seafile. You only need to specify `storageClassName` in the `seafile.config.seafileDataVolume` object in `my-values.yaml`: + + ```yaml + seafile: + configs: + seafileDataVolume: + storageClassName: + ... + ``` 4. Then install the chart use the following command: