Skip to content

Commit a39007b

Browse files
committed
chore(workflow): add replicas settings
1 parent 0a48e6e commit a39007b

2 files changed

Lines changed: 23 additions & 1 deletion

File tree

_scripts/install.sh

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,14 +333,16 @@ global:
333333
ingressClass: traefik
334334
335335
builder:
336-
imageRegistry: ${DRYCC_REGISTRY}
336+
replicas: ${BUILDER_REPLICAS}
337+
imageRegistry: ${DRYCC_REGISTRY}
337338
service:
338339
type: LoadBalancer
339340
annotations:
340341
metallb.universe.tf/address-pool: public
341342
metallb.universe.tf/allow-shared-ip: drycc
342343
343344
database:
345+
replicas: ${DATABASE_REPLICAS}
344346
imageRegistry: ${DRYCC_REGISTRY}
345347
limitsMemory: "256Mi"
346348
limitsHugepages2Mi: "256Mi"
@@ -355,10 +357,12 @@ fluentd:
355357
CONTAINER_TAIL_PARSER_TYPE: "/^(?<time>.+) (?<stream>stdout|stderr)( (?<tags>.))? (?<log>.*)$/"
356358
357359
controller:
360+
replicas: ${CONTROLLER_REPLICAS}
358361
imageRegistry: ${DRYCC_REGISTRY}
359362
appStorageClass: ${CONTROLLER_APP_STORAGE_CLASS:-"drycc-storage"}
360363
361364
redis:
365+
replicas: ${REDIS_REPLICAS}
362366
imageRegistry: ${DRYCC_REGISTRY}
363367
persistence:
364368
enabled: true
@@ -377,17 +381,20 @@ storage:
377381
storageClass: ${STORAGE_MINIO_PERSISTENCE_STORAGE_CLASS:-""}
378382
meta:
379383
pd:
384+
replicas: ${STORAGE_META_PD_REPLICAS}
380385
persistence:
381386
enabled: true
382387
size: ${STORAGE_META_PD_PERSISTENCE_SIZE:-10Gi}
383388
storageClass: ${STORAGE_META_PD_PERSISTENCE_STORAGE_CLASS:-""}
384389
tikv:
390+
replicas: ${STORAGE_META_TIKV_REPLICAS}
385391
persistence:
386392
enabled: true
387393
size: ${STORAGE_META_TIKV_PERSISTENCE_SIZE:-10Gi}
388394
storageClass: ${STORAGE_META_TIKV_PERSISTENCE_STORAGE_CLASS:-""}
389395
390396
rabbitmq:
397+
replicas: ${RABBITMQ_REPLICAS}
391398
imageRegistry: ${DRYCC_REGISTRY}
392399
username: "${RABBITMQ_USERNAME}"
393400
password: "${RABBITMQ_PASSWORD}"
@@ -400,6 +407,7 @@ imagebuilder:
400407
imageRegistry: ${DRYCC_REGISTRY}
401408
402409
influxdb:
410+
replicas: ${INFLUXDB_REPLICAS}
403411
imageRegistry: ${DRYCC_REGISTRY}
404412
user: "${INFLUXDB_USERNAME}"
405413
password: "${INFLUXDB_PASSWORD}"
@@ -409,6 +417,7 @@ influxdb:
409417
storageClass: ${INFLUXDB_PERSISTENCE_STORAGE_CLASS:-""}
410418
411419
logger:
420+
replicas: ${LOGGER_REPLICAS}
412421
imageRegistry: ${DRYCC_REGISTRY}
413422
414423
monitor:
@@ -423,11 +432,13 @@ monitor:
423432
424433
425434
passport:
435+
replicas: ${PASSPORT_REPLICAS}
426436
imageRegistry: ${DRYCC_REGISTRY}
427437
adminUsername: ${DRYCC_ADMIN_USERNAME}
428438
adminPassword: ${DRYCC_ADMIN_PASSWORD}
429439
430440
registry:
441+
replicas: ${REGISTRY_REPLICAS}
431442
imageRegistry: ${DRYCC_REGISTRY}
432443
433444
registry-proxy:

src/quickstart/install-workflow.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,26 +196,37 @@ KUBE_API_SERVER_ADDRESS | Set with the IP address of the load
196196
KUBE_API_SERVER_PORT | Set with the PORT of the loadbalancer that was in front of kube-apiserver, which is `6443` by default
197197
METALLB_CONFIG_FILE | The metallb config file path, layer 2 network is used by default
198198
INSTALL_DRYCC_MIRROR | Specify the accelerated mirror location. Currently, only `cn` is supported
199+
BUILDER_REPLICAS | Number of builder replicas to deploy
200+
CONTROLLER_REPLICAS | Number of controller replicas to deploy
199201
CONTROLLER_APP_STORAGE_CLASS | StorageClass allocated by `drycc volumes`; default storageClass is used by default
202+
REDIS_REPLICAS | Number of redis replicas to deploy
200203
REDIS_PERSISTENCE_SIZE | The size of the persistence space allocated to `redis`, which is `5Gi` by default
201204
REDIS_PERSISTENCE_STORAGE_CLASS | StorangeClass of `redis`; default storangeclass is used by default
202205
STORAGE_MINIO_ZONE | Storage number of zones, capacity expansion through the number of zones
203206
STORAGE_MINIO_DRIVES | Storage number of drives per node, after the cluster is initialized, it cannot be changed
204207
STORAGE_MINIO_REPLICAS | Storage number of nodes, after the cluster is initialized, it cannot be changed
205208
STORAGE_MINIO_PERSISTENCE_SIZE | The size of the persistence space allocated to `storage`, which is `20Gi` by default
206209
STORAGE_MINIO_PERSISTENCE_STORAGE_CLASS | StorangeClass of `storage`; default storangeclass is used by default
210+
STORAGE_META_PD_REPLICAS | Number of storage meta pd replicas to deploy
207211
STORAGE_META_PD_PERSISTENCE_SIZE | The size of the persistence space allocated to `storage meta pd`, which is `10Gi` by default
208212
STORAGE_META_PD_PERSISTENCE_STORAGE_CLASS | StorangeClass of `storage meta pd`; default storangeclass is used by default
213+
STORAGE_META_TIKV_REPLICAS | Number of storage meta tikv replicas to deploy
209214
STORAGE_META_TIKV_PERSISTENCE_SIZE | The size of the persistence space allocated to `storage meta tikv`, which is `10Gi` by default
210215
STORAGE_META_TIKV_PERSISTENCE_STORAGE_CLASS| StorangeClass of `storage meta tikv`; default storangeclass is used by default
211216
MONITOR_GRAFANA_PERSISTENCE_SIZE | The size of the persistence space allocated to `monitor.grafana`, which is `5Gi` by default
212217
MONITOR_GRAFANA_PERSISTENCE_STORAGE_CLASS | StorangeClass of `monitor` grafana; default storangeclass is used by default
218+
INFLUXDB_REPLICAS | Number of influxdb replicas to deploy
213219
INFLUXDB_PERSISTENCE_SIZE | The size of the persistence space allocated to `influxdb`, which is `5Gi` by default
214220
INFLUXDB_PERSISTENCE_STORAGE_CLASS | StorangeClass of `influxdb`; default storangeclass is used by default
221+
LOGGER_REPLICAS | Number of logger replicas to deploy
222+
RABBITMQ_REPLICAS | Number of rabbitmq replicas to deploy
215223
RABBITMQ_PERSISTENCE_SIZE | The size of the persistence space allocated to `rabbitmq`, which is `5Gi` by default
216224
RABBITMQ_PERSISTENCE_STORAGE_CLASS | StorangeClass of `rabbitmq`; default storangeclass is used by default
225+
DATABASE_REPLICAS | Number of database replicas to deploy
217226
DATABASE_PERSISTENCE_SIZE | The size of the persistence space allocated to `database`, which is `5Gi` by default
218227
DATABASE_PERSISTENCE_STORAGE_CLASS | StorangeClass of `database`; default storangeclass is used by default
228+
PASSPORT_REPLICAS | Number of passport replicas to deploy
229+
REGISTRY_REPLICAS | Number of registry replicas to deploy
219230
HELMBROKER_PERSISTENCE_SIZE | The size of the persistence space allocated to `helmbroker`, which is `5Gi` by default
220231
HELMBROKER_PERSISTENCE_STORAGE_CLASS | StorangeClass of `helmbroker`; default storangeclass is used by default
221232
K3S_DATA_DIR | The config of k3s data dir; If not set, the default path is used

0 commit comments

Comments
 (0)