Skip to content

Commit df88304

Browse files
committed
feat(workflow): add storangeClass
1 parent 7862d3f commit df88304

2 files changed

Lines changed: 27 additions & 15 deletions

File tree

_scripts/install.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,21 @@ function install_drycc {
144144
--set global.platform_domain="${PLATFORM_DOMAIN}" \
145145
--set global.ingress_class=nginx \
146146
--set fluentd.daemon_environment.CONTAINER_TAIL_PARSER_TYPE="/^(?<time>.+) (?<stream>stdout|stderr)( (?<tags>.))? (?<log>.*)$/" \
147+
--set controller.app_storage_class=${CONTROLLER_APP_STORAGE_CLASS:-""} \
147148
--set minio.persistence.enabled=true \
148149
--set minio.persistence.size=${MINIO_PERSISTENCE_SIZE:-20Gi} \
150+
--set minio.persistence.storageClass=${MINIO_PERSISTENCE_STORAGE_CLASS:-""} \
149151
--set rabbitmq.username="${RABBITMQ_USERNAME}" \
150152
--set rabbitmq.password="${RABBITMQ_PASSWORD}" \
151153
--set rabbitmq.persistence.enabled=true \
152154
--set rabbitmq.persistence.size=${RABBITMQ_PERSISTENCE_SIZE:-5Gi} \
155+
--set rabbitmq.persistence.storageClass=${RABBITMQ_PERSISTENCE_STORAGE_CLASS:-""} \
153156
--set influxdb.persistence.enabled=true \
154157
--set influxdb.persistence.size=${INFLUXDB_PERSISTENCE_SIZE:-5Gi} \
158+
--set influxdb.persistence.storageClass=${INFLUXDB_PERSISTENCE_STORAGE_CLASS:-""} \
155159
--set monitor.grafana.persistence.enabled=true \
156-
--set monitor.grafana.persistence.size=${MONITOR_PERSISTENCE_SIZE:-5Gi} \
160+
--set monitor.grafana.persistence.size=${MONITOR_GRAFANA_PERSISTENCE_SIZE:-5Gi} \
161+
--set monitor.grafana.storageClass=${MONITOR_GRAFANA_PERSISTENCE_STORAGE_CLASS:-""} \
157162
--set passport.admin_username=${DRYCC_ADMIN_USERNAME} \
158163
--set passport.admin_password=${DRYCC_ADMIN_PASSWORD} \
159164
--namespace drycc \
@@ -172,6 +177,7 @@ function install_helmbroker {
172177
--set ingress_class="nginx" \
173178
--set platform_domain="cluster.local" \
174179
--set persistence.size=${HELMBROKER_PERSISTENCE_SIZE:-5Gi} \
180+
--set persistence.storageClass=${HELMBROKER_PERSISTENCE_STORAGE_CLASS:=""} \
175181
--set platform_domain=${PLATFORM_DOMAIN} \
176182
--set username=${HELMBROKER_USERNAME} \
177183
--set password=${HELMBROKER_PASSWORD} \

src/quickstart/install-workflow.md

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -176,20 +176,26 @@ $ curl -sfL https://www.drycc.cc/install.sh | bash -s - install_k3s_agent
176176

177177
When using this method to install drycc, the following environment variables can be used to configure the installation:
178178

179-
ENVIRONMENT VARIABLE | DESCRIPTION
180-
--------------------------------|------------------------------------------------------------------------------------------------
181-
PLATFORM_DOMAIN | Required item, specify drycc's domain name
182-
DRYCC_ADMIN_USERNAME | Required item, specify drycc's admin username
183-
DRYCC_ADMIN_PASSWORD | Required item, specify drycc's admin password
184-
CHANNEL | By default, `stable` channel will be installed. You can also specify `testing`
185-
USE_HAPROXY | Haproxy is enabled by default. If you want to turn it off, this value is false
186-
METALLB_ADDRESS_POOLS | IP pool for LoadBalancer. The default is `172.16.0.0/12`
187-
INSTALL_DRYCC_MIRROR | Specify the accelerated mirror location. Currently, only `cn` is supported
188-
MINIO_PERSISTENCE_SIZE | The size of the persistence space allocated to `minio`, which is `20Gi` by default
189-
MONITOR_PERSISTENCE_SIZE | The size of the persistence space allocated to `monitor`, which is `5Gi` by default
190-
INFLUXDB_PERSISTENCE_SIZE | The size of the persistence space allocated to `influxdb`, which is `5Gi` by default
191-
RABBITMQ_PERSISTENCE_SIZE | The size of the persistence space allocated to `rabbitmq`, which is `5Gi` by default
192-
HELMBROKER_PERSISTENCE_SIZE | The size of the persistence space allocated to `helmbroker`, which is `5Gi` by default
179+
ENVIRONMENT VARIABLE | DESCRIPTION
180+
-------------------------------------------|---------------------------------------------------------------------------------------------------------
181+
PLATFORM_DOMAIN | Required item, specify drycc's domain name
182+
DRYCC_ADMIN_USERNAME | Required item, specify drycc's admin username
183+
DRYCC_ADMIN_PASSWORD | Required item, specify drycc's admin password
184+
CHANNEL | By default, `stable` channel will be installed. You can also specify `testing`
185+
USE_HAPROXY | Haproxy is enabled by default. If you want to turn it off, this value is false
186+
METALLB_ADDRESS_POOLS | IP pool for LoadBalancer. The default is `172.16.0.0/12`
187+
INSTALL_DRYCC_MIRROR | Specify the accelerated mirror location. Currently, only `cn` is supported
188+
CONTROLLER_APP_STORAGE_CLASS | StorageClass allocated by `drycc volumes`; default storageClass is used by default
189+
MINIO_PERSISTENCE_SIZE | The size of the persistence space allocated to `minio`, which is `20Gi` by default
190+
MINIO_PERSISTENCE_STORAGE_CLASS | StorangeClass of `minio`; default storangeclass is used by default
191+
MONITOR_GRAFANA_PERSISTENCE_SIZE | The size of the persistence space allocated to `monitor.grafana`, which is `5Gi` by default
192+
MONITOR_GRAFANA_PERSISTENCE_STORAGE_CLASS | StorangeClass of `monitor` grafana; default storangeclass is used by default
193+
INFLUXDB_PERSISTENCE_SIZE | The size of the persistence space allocated to `influxdb`, which is `5Gi` by default
194+
INFLUXDB_PERSISTENCE_STORAGE_CLASS | StorangeClass of `influxdb`; default storangeclass is used by default
195+
RABBITMQ_PERSISTENCE_SIZE | The size of the persistence space allocated to `rabbitmq`, which is `5Gi` by default
196+
RABBITMQ_PERSISTENCE_STORAGE_CLASS | StorangeClass of `rabbitmq`; default storangeclass is used by default
197+
HELMBROKER_PERSISTENCE_SIZE | The size of the persistence space allocated to `helmbroker`, which is `5Gi` by default
198+
HELMBROKER_PERSISTENCE_STORAGE_CLASS | StorangeClass of `helmbroker`; default storangeclass is used by default
193199

194200
Since the installation script will install k3s, other environment variables can refer to k3s installation [environment variables](https://rancher.com/docs/k3s/latest/en/installation/install-options/).
195201

0 commit comments

Comments
 (0)