Skip to content

Commit 908dc9d

Browse files
committed
chore(workflow): use seaweedfs replace minio
1 parent 148b1d3 commit 908dc9d

3 files changed

Lines changed: 149 additions & 100 deletions

File tree

_scripts/install.sh

Lines changed: 43 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,11 @@ global:
417417
gatewayClass: ${GATEWAY_CLASS}
418418
419419
builder:
420-
replicas: ${BUILDER_REPLICAS}
420+
replicas: ${BUILDER_REPLICAS:-1}
421421
imageRegistry: ${DRYCC_REGISTRY}
422422
423423
database:
424-
replicas: ${DATABASE_REPLICAS}
424+
replicas: ${DATABASE_REPLICAS:-2}
425425
imageRegistry: ${DRYCC_REGISTRY}
426426
limitsMemory: "256Mi"
427427
limitsHugepages2Mi: "256Mi"
@@ -431,7 +431,7 @@ database:
431431
storageClass: ${DATABASE_PERSISTENCE_STORAGE_CLASS:-""}
432432
433433
timeseries:
434-
replicas: ${TIMESERIES_REPLICAS}
434+
replicas: ${TIMESERIES_REPLICAS:-1}
435435
imageRegistry: ${DRYCC_REGISTRY}
436436
limitsMemory: "256Mi"
437437
limitsHugepages2Mi: "256Mi"
@@ -444,47 +444,62 @@ fluentbit:
444444
imageRegistry: ${DRYCC_REGISTRY}
445445
446446
controller:
447-
apiReplicas: ${CONTROLLER_API_REPLICAS}
448-
celeryReplicas: ${CONTROLLER_CELERY_REPLICAS}
449-
webhookReplicas: ${CONTROLLER_WEBHOOK_REPLICAS}
447+
apiReplicas: ${CONTROLLER_API_REPLICAS:-1}
448+
celeryReplicas: ${CONTROLLER_CELERY_REPLICAS:-1}
449+
webhookReplicas: ${CONTROLLER_WEBHOOK_REPLICAS:-1}
450450
imageRegistry: ${DRYCC_REGISTRY}
451451
appRuntimeClass: ${CONTROLLER_APP_RUNTIME_CLASS:-""}
452452
appStorageClass: ${CONTROLLER_APP_STORAGE_CLASS:-"drycc-storage"}
453453
454454
redis:
455-
replicas: ${REDIS_REPLICAS}
455+
replicas: ${REDIS_REPLICAS:-1}
456456
imageRegistry: ${DRYCC_REGISTRY}
457457
persistence:
458458
enabled: true
459459
size: ${REDIS_PERSISTENCE_SIZE:-5Gi}
460460
storageClass: ${REDIS_PERSISTENCE_STORAGE_CLASS:-""}
461461
462462
storage:
463-
minio:
464-
zone: ${STORAGE_MINIO_ZONE:-1}
465-
drives: ${STORAGE_MINIO_DRIVES:-4}
466-
replicas: ${STORAGE_MINIO_REPLICAS:-1}
467-
imageRegistry: ${DRYCC_REGISTRY}
468-
persistence:
469-
enabled: true
470-
size: ${STORAGE_MINIO_PERSISTENCE_SIZE:-20Gi}
471-
storageClass: ${STORAGE_MINIO_PERSISTENCE_STORAGE_CLASS:-""}
472-
meta:
473-
pd:
474-
replicas: ${STORAGE_META_PD_REPLICAS}
463+
csi:
464+
statefulset:
465+
replicas: ${STORAGE_CSI_STATEFULSET_REPLICAS:-1}
466+
mainnode:
467+
tipd:
468+
replicas: ${STORAGE_MAINNODE_TIPD_REPLICAS:-1}
469+
persistence:
470+
enabled: true
471+
size: ${STORAGE_MAINNODE_TIPD_PERSISTENCE_SIZE:-5Gi}
472+
storageClass: "${STORAGE_MAINNODE_TIPD_PERSISTENCE_STORAGE_CLASS}"
473+
weed:
474+
replicas: ${STORAGE_MAINNODE_WEED_REPLICAS:-1}
475475
persistence:
476476
enabled: true
477-
size: ${STORAGE_META_PD_PERSISTENCE_SIZE:-10Gi}
478-
storageClass: ${STORAGE_META_PD_PERSISTENCE_STORAGE_CLASS:-""}
477+
size: ${STORAGE_MAINNODE_WEED_PERSISTENCE_SIZE:-5Gi}
478+
storageClass: "${STORAGE_MAINNODE_WEED_PERSISTENCE_STORAGE_CLASS}"
479+
metanode:
479480
tikv:
480-
replicas: ${STORAGE_META_TIKV_REPLICAS}
481+
replicas: ${STORAGE_METANODE_TIKV_REPLICAS:-1}
482+
persistence:
483+
enabled: true
484+
size: ${STORAGE_METANODE_TIKV_PERSISTENCE_SIZE:-5Gi}
485+
storageClass: "${STORAGE_METANODE_TIKV_PERSISTENCE_STORAGE_CLASS}"
486+
weed:
487+
replicas: ${STORAGE_METANODE_WEED_REPLICAS:-1}
481488
persistence:
482489
enabled: true
483-
size: ${STORAGE_META_TIKV_PERSISTENCE_SIZE:-10Gi}
484-
storageClass: ${STORAGE_META_TIKV_PERSISTENCE_STORAGE_CLASS:-""}
490+
size: ${STORAGE_METANODE_WEED_PERSISTENCE_SIZE:-5Gi}
491+
storageClass: "${STORAGE_METANODE_WEED_PERSISTENCE_STORAGE_CLASS}"
492+
datanode:
493+
weed:
494+
replicas: ${STORAGE_DATANODE_WEED_REPLICAS:-3}
495+
persistence:
496+
hdd:
497+
enabled: true
498+
size: ${STORAGE_DATANODE_WEED_PERSISTENCE_SIZE:-10Gi}
499+
storageClass: "${STORAGE_DATANODE_WEED_PERSISTENCE_STORAGE_CLASS}"
485500
486501
rabbitmq:
487-
replicas: ${RABBITMQ_REPLICAS}
502+
replicas: ${RABBITMQ_REPLICAS:-1}
488503
imageRegistry: ${DRYCC_REGISTRY}
489504
username: "${RABBITMQ_USERNAME}"
490505
password: "${RABBITMQ_PASSWORD}"
@@ -497,7 +512,7 @@ imagebuilder:
497512
imageRegistry: ${DRYCC_REGISTRY}
498513
499514
logger:
500-
replicas: ${LOGGER_REPLICAS}
515+
replicas: ${LOGGER_REPLICAS:-1}
501516
imageRegistry: ${DRYCC_REGISTRY}
502517
503518
monitor:
@@ -520,13 +535,13 @@ prometheus:
520535
storageClass: ${PROMETHEUS_SERVER_PERSISTENCE_STORAGE_CLASS:-""}
521536
522537
passport:
523-
replicas: ${PASSPORT_REPLICAS}
538+
replicas: ${PASSPORT_REPLICAS:-1}
524539
imageRegistry: ${DRYCC_REGISTRY}
525540
adminUsername: ${DRYCC_ADMIN_USERNAME}
526541
adminPassword: ${DRYCC_ADMIN_PASSWORD}
527542
528543
registry:
529-
replicas: ${REGISTRY_REPLICAS}
544+
replicas: ${REGISTRY_REPLICAS:-1}
530545
imageRegistry: ${DRYCC_REGISTRY}
531546
532547
registry-proxy:

charts/workflow/values.yaml

Lines changed: 44 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -97,29 +97,58 @@ global:
9797
passportLocation: "on-cluster"
9898

9999
storage:
100-
minio:
101-
# Storage zone count
102-
zones: 1
103-
# Device count of per replica
104-
drives: 4
105-
# Number of replicas per zone
106-
replicas: 1
107-
persistence:
108-
enabled: false
109-
accessMode: ReadWriteOnce
110-
size: 5Gi
111-
storageClass: ""
112-
meta:
113-
pd:
100+
# The following parameters are configured only when using an on-cluster Storage instance
101+
csi:
102+
storageClassName: drycc-storage
103+
statefulset:
104+
replicas: 1
105+
mainnode:
106+
tipd:
107+
replicas: 3
114108
persistence:
115109
enabled: false
116110
size: 5Gi
117111
storageClass: ""
112+
weed:
113+
replicas: 3
114+
persistence:
115+
enabled: false
116+
size: 5Gi
117+
storageClass: ""
118+
metanode:
118119
tikv:
120+
replicas: 3
121+
persistence:
122+
enabled: false
123+
size: 5Gi
124+
storageClass: ""
125+
weed:
126+
replicas: 3
119127
persistence:
120128
enabled: false
121129
size: 5Gi
122130
storageClass: ""
131+
datanode:
132+
weed:
133+
replicas: 3
134+
persistence:
135+
ssd:
136+
enabled: false
137+
size: 5Gi
138+
storageClass: ""
139+
hdd:
140+
enabled: false
141+
size: 5Gi
142+
storageClass: ""
143+
# The following parameters are configured only when using an off-cluster Storage instance
144+
lookup: path
145+
health: ""
146+
endpoint: ""
147+
builderBucket: ""
148+
registryBucket: ""
149+
# The following parameters are general parameters
150+
accesskey: ""
151+
secretkey: ""
123152

124153
# Set the default (global) way of how Application (your own) images are
125154
# pulled from within the Controller.
@@ -145,7 +174,7 @@ controller:
145174
# admin_only - allows for registration by an admin only.
146175
registrationMode: "admin_only"
147176
# Set storageClassName, It is used for application mount.
148-
appStorageClass: "drycc-storage"
177+
appStorageClass: "{{ .Values.storage.csi.storageClassName }}"
149178
# Set controller deployment replicas
150179
replicas: 1
151180
# Set celery replicas

src/quickstart/install-workflow.md

Lines changed: 62 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -184,63 +184,68 @@ $ curl -sfL https://www.drycc.cc/install.sh | bash -s - install_k3s_agent
184184

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

187-
ENVIRONMENT VARIABLE | DESCRIPTION
188-
-------------------------------------------|---------------------------------------------------------------------------------------------
189-
PLATFORM_DOMAIN | Required item, specify drycc's domain name
190-
DRYCC_ADMIN_USERNAME | Required item, specify drycc's admin username
191-
DRYCC_ADMIN_PASSWORD | Required item, specify drycc's admin password
192-
CERT_MANAGER_ENABLED | Whether to use automatic certificate. It is `true` by default
193-
CHANNEL | By default, `stable` channel will be installed. You can also specify `testing`
194-
CONTAINERD_FILE | The `config.yaml` file path used by containerd
195-
KUBE_API_SERVER_ADDRESS | Set with the IP address of the loadbalancer that was in front of kube-apiserver, The default is the IP address of the current node
196-
KUBE_API_SERVER_PORT | Set with the PORT of the loadbalancer that was in front of kube-apiserver, which is `6443` by default
197-
METALLB_CONFIG_FILE | The metallb config file path, layer 2 network is used by default
198-
INSTALL_DRYCC_MIRROR | Specify the accelerated mirror location. Currently, only `cn` is supported
199-
BUILDER_REPLICAS | Number of builder replicas to deploy
200-
CONTROLLER_API_REPLICAS | Number of controller api replicas to deploy
201-
CONTROLLER_CELERY_REPLICAS | Number of controller celery replicas to deploy
202-
CONTROLLER_WEBHOOK_REPLICAS | Number of controller webhook replicas to deploy
203-
CONTROLLER_APP_RUNTIME_CLASS | RuntimeClass is a feature for selecting the container runtime configuration.
204-
CONTROLLER_APP_STORAGE_CLASS | StorageClass allocated by `drycc volumes`; default storageClass is used by default
205-
REDIS_REPLICAS | Number of redis replicas to deploy
206-
REDIS_PERSISTENCE_SIZE | The size of the persistence space allocated to `redis`, which is `5Gi` by default
207-
REDIS_PERSISTENCE_STORAGE_CLASS | StorangeClass of `redis`; default storangeclass is used by default
208-
STORAGE_MINIO_ZONE | Storage number of zones, capacity expansion through the number of zones
209-
STORAGE_MINIO_DRIVES | Storage number of drives per node, after the cluster is initialized, it cannot be changed
210-
STORAGE_MINIO_REPLICAS | Storage number of nodes, after the cluster is initialized, it cannot be changed
211-
STORAGE_MINIO_PERSISTENCE_SIZE | The size of the persistence space allocated to `storage`, which is `20Gi` by default
212-
STORAGE_MINIO_PERSISTENCE_STORAGE_CLASS | StorangeClass of `storage`; default storangeclass is used by default
213-
STORAGE_META_PD_REPLICAS | Number of storage meta pd replicas to deploy
214-
STORAGE_META_PD_PERSISTENCE_SIZE | The size of the persistence space allocated to `storage meta pd`, which is `10Gi` by default
215-
STORAGE_META_PD_PERSISTENCE_STORAGE_CLASS | StorangeClass of `storage meta pd`; default storangeclass is used by default
216-
STORAGE_META_TIKV_REPLICAS | Number of storage meta tikv replicas to deploy
217-
STORAGE_META_TIKV_PERSISTENCE_SIZE | The size of the persistence space allocated to `storage meta tikv`, which is `10Gi` by default
218-
STORAGE_META_TIKV_PERSISTENCE_STORAGE_CLASS| StorangeClass of `storage meta tikv`; default storangeclass is used by default
219-
MONITOR_GRAFANA_PERSISTENCE_SIZE | The size of the persistence space allocated to `monitor.grafana`, which is `5Gi` by default
220-
MONITOR_GRAFANA_PERSISTENCE_STORAGE_CLASS | StorangeClass of `monitor` grafana; default storangeclass is used by default
221-
LOGGER_REPLICAS | Number of logger replicas to deploy
222-
RABBITMQ_REPLICAS | Number of rabbitmq replicas to deploy
223-
RABBITMQ_PERSISTENCE_SIZE | The size of the persistence space allocated to `rabbitmq`, which is `5Gi` by default
224-
RABBITMQ_PERSISTENCE_STORAGE_CLASS | StorangeClass of `rabbitmq`; default storangeclass is used by default
225-
DATABASE_REPLICAS | Number of database replicas to deploy
226-
DATABASE_PERSISTENCE_SIZE | The size of the persistence space allocated to `database`, which is `5Gi` by default
227-
DATABASE_PERSISTENCE_STORAGE_CLASS | StorangeClass of `database`; default storangeclass is used by default
228-
TIMESERIES_REPLICAS | Number of timeseries replicas to deploy
229-
TIMESERIES_PERSISTENCE_SIZE | The size of the persistence space allocated to `timeseries`, which is `5Gi` by default
230-
TIMESERIES_PERSISTENCE_STORAGE_CLASS | StorangeClass of `timeseries`; default storangeclass is used by default
231-
PASSPORT_REPLICAS | Number of passport replicas to deploy
232-
REGISTRY_REPLICAS | Number of registry replicas to deploy
233-
HELMBROKER_REPLICAS | Number of helmbroker api replicas to deploy
234-
HELMBROKER_CELERY_REPLICAS | Number of helmbroker celery replicas to deploy
235-
HELMBROKER_PERSISTENCE_SIZE | The size of the persistence space allocated to `helmbroker`, which is `5Gi` by default
236-
HELMBROKER_PERSISTENCE_STORAGE_CLASS | StorangeClass of `helmbroker`; default storangeclass is used by default
237-
PROMETHEUS_SERVER_RETENTION | Prometheus data retention period (default if not specified is 15 days)
238-
PROMETHEUS_SERVER_PERSISTENCE_SIZE | The size of the persistence space allocated to `prometheus-server`, which is `10Gi` by default
239-
PROMETHEUS_SERVER_PERSISTENCE_STORAGE_CLASS| StorangeClass of `prometheus-server`; default storangeclass is used by default
240-
K3S_DATA_DIR | The config of k3s data dir; If not set, the default path is used
241-
ACME_SERVER | ACME Server url, default use letsencrypt
242-
ACME_EAB_KEY_ID | The key ID of which your external account binding is indexed by the external account
243-
ACME_EAB_KEY_SECRET | The key Secret of which your external account symmetric MAC key
187+
ENVIRONMENT VARIABLE | DESCRIPTION
188+
------------------------------------------------|---------------------------------------------------------------------------------------------
189+
PLATFORM_DOMAIN | Required item, specify drycc's domain name
190+
DRYCC_ADMIN_USERNAME | Required item, specify drycc's admin username
191+
DRYCC_ADMIN_PASSWORD | Required item, specify drycc's admin password
192+
CERT_MANAGER_ENABLED | Whether to use automatic certificate. It is `true` by default
193+
CHANNEL | By default, `stable` channel will be installed. You can also specify `testing`
194+
CONTAINERD_FILE | The `config.yaml` file path used by containerd
195+
KUBE_API_SERVER_ADDRESS | Set with the IP address of the loadbalancer that was in front of kube-apiserver, The default is the IP address of the current node
196+
KUBE_API_SERVER_PORT | Set with the PORT of the loadbalancer that was in front of kube-apiserver, which is `6443` by default
197+
METALLB_CONFIG_FILE | The metallb config file path, layer 2 network is used by default
198+
INSTALL_DRYCC_MIRROR | Specify the accelerated mirror location. Currently, only `cn` is supported
199+
BUILDER_REPLICAS | Number of builder replicas to deploy
200+
CONTROLLER_API_REPLICAS | Number of controller api replicas to deploy
201+
CONTROLLER_CELERY_REPLICAS | Number of controller celery replicas to deploy
202+
CONTROLLER_WEBHOOK_REPLICAS | Number of controller webhook replicas to deploy
203+
CONTROLLER_APP_RUNTIME_CLASS | RuntimeClass is a feature for selecting the container runtime configuration.
204+
CONTROLLER_APP_STORAGE_CLASS | StorageClass allocated by `drycc volumes`; default storageClass is used by default
205+
REDIS_REPLICAS | Number of redis replicas to deploy
206+
REDIS_PERSISTENCE_SIZE | The size of the persistence space allocated to `redis`, which is `5Gi` by default
207+
REDIS_PERSISTENCE_STORAGE_CLASS | StorangeClass of `redis`; default storangeclass is used by default
208+
STORAGE_CSI_STATEFULSET_REPLICAS | Number of storage csi controller replicas to deploy
209+
STORAGE_MAINNODE_TIPD_REPLICAS | Number of storage mainode tipd replicas to deploy
210+
STORAGE_MAINNODE_TIPD_PERSISTENCE_SIZE | The size of the persistence space allocated to `mainnode tipd`, which is `10Gi` by default
211+
STORAGE_MAINNODE_TIPD_PERSISTENCE_STORAGE_CLASS | StorangeClass of `mainnode tipd`; default storangeclass is used by default
212+
STORAGE_MAINNODE_WEED_REPLICAS | Number of storage mainode weed replicas to deploy
213+
STORAGE_MAINNODE_WEED_PERSISTENCE_SIZE | The size of the persistence space allocated to `mainnode weed`, which is `10Gi` by default
214+
STORAGE_MAINNODE_WEED_PERSISTENCE_STORAGE_CLASS | StorangeClass of `mainnode weed`; default storangeclass is used by default
215+
STORAGE_METANODE_TIKV_REPLICAS | Number of storage metanode tikv replicas to deploy
216+
STORAGE_METANODE_TIKV_PERSISTENCE_SIZE | The size of the persistence space allocated to `metanode tikv`, which is `10Gi` by default
217+
STORAGE_METANODE_TIKV_PERSISTENCE_STORAGE_CLASS | StorangeClass of `mainnode tikv`; default storangeclass is used by default
218+
STORAGE_METANODE_WEED_REPLICAS | Number of storage metanode weed replicas to deploy
219+
STORAGE_METANODE_WEED_PERSISTENCE_SIZE | The size of the persistence space allocated to `metanode weed`, which is `10Gi` by default
220+
STORAGE_METANODE_WEED_PERSISTENCE_STORAGE_CLASS | StorangeClass of `mainnode weed`; default storangeclass is used by default
221+
STORAGE_DATANODE_WEED_REPLICAS | Number of storage datanode weed replicas to deploy
222+
STORAGE_DATANODE_WEED_PERSISTENCE_SIZE | The size of the persistence space allocated to `datanode weed`, which is `20Gi` by default
223+
STORAGE_DATANODE_WEED_PERSISTENCE_STORAGE_CLASS | StorangeClass of `datanode weed`; default storangeclass is used by default
224+
MONITOR_GRAFANA_PERSISTENCE_SIZE | The size of the persistence space allocated to `monitor.grafana`, which is `5Gi` by default
225+
MONITOR_GRAFANA_PERSISTENCE_STORAGE_CLASS | StorangeClass of `monitor` grafana; default storangeclass is used by default
226+
LOGGER_REPLICAS | Number of logger replicas to deploy
227+
RABBITMQ_REPLICAS | Number of rabbitmq replicas to deploy
228+
RABBITMQ_PERSISTENCE_SIZE | The size of the persistence space allocated to `rabbitmq`, which is `5Gi` by default
229+
RABBITMQ_PERSISTENCE_STORAGE_CLASS | StorangeClass of `rabbitmq`; default storangeclass is used by default
230+
DATABASE_REPLICAS | Number of database replicas to deploy
231+
DATABASE_PERSISTENCE_SIZE | The size of the persistence space allocated to `database`, which is `5Gi` by default
232+
DATABASE_PERSISTENCE_STORAGE_CLASS | StorangeClass of `database`; default storangeclass is used by default
233+
TIMESERIES_REPLICAS | Number of timeseries replicas to deploy
234+
TIMESERIES_PERSISTENCE_SIZE | The size of the persistence space allocated to `timeseries`, which is `5Gi` by default
235+
TIMESERIES_PERSISTENCE_STORAGE_CLASS | StorangeClass of `timeseries`; default storangeclass is used by default
236+
PASSPORT_REPLICAS | Number of passport replicas to deploy
237+
REGISTRY_REPLICAS | Number of registry replicas to deploy
238+
HELMBROKER_REPLICAS | Number of helmbroker api replicas to deploy
239+
HELMBROKER_CELERY_REPLICAS | Number of helmbroker celery replicas to deploy
240+
HELMBROKER_PERSISTENCE_SIZE | The size of the persistence space allocated to `helmbroker`, which is `5Gi` by default
241+
HELMBROKER_PERSISTENCE_STORAGE_CLASS | StorangeClass of `helmbroker`; default storangeclass is used by default
242+
PROMETHEUS_SERVER_RETENTION | Prometheus data retention period (default if not specified is 15 days)
243+
PROMETHEUS_SERVER_PERSISTENCE_SIZE | The size of the persistence space allocated to `prometheus-server`, which is `10Gi` by default
244+
PROMETHEUS_SERVER_PERSISTENCE_STORAGE_CLASS | StorangeClass of `prometheus-server`; default storangeclass is used by default
245+
K3S_DATA_DIR | The config of k3s data dir; If not set, the default path is used
246+
ACME_SERVER | ACME Server url, default use letsencrypt
247+
ACME_EAB_KEY_ID | The key ID of which your external account binding is indexed by the external account
248+
ACME_EAB_KEY_SECRET | The key Secret of which your external account symmetric MAC key
244249

245250
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/).
246251

0 commit comments

Comments
 (0)