Skip to content

Commit a1bb80b

Browse files
committed
chore(workflow): add replicas settings
1 parent 9b9bebe commit a1bb80b

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
@@ -330,14 +330,16 @@ global:
330330
ingressClass: traefik
331331
332332
builder:
333-
imageRegistry: ${DRYCC_REGISTRY}
333+
replicas: ${BUILDER_REPLICAS}
334+
imageRegistry: ${DRYCC_REGISTRY}
334335
service:
335336
type: LoadBalancer
336337
annotations:
337338
metallb.universe.tf/address-pool: public
338339
metallb.universe.tf/allow-shared-ip: drycc
339340
340341
database:
342+
replicas: ${DATABASE_REPLICAS}
341343
imageRegistry: ${DRYCC_REGISTRY}
342344
limitsMemory: "256Mi"
343345
limitsHugepages2Mi: "256Mi"
@@ -352,10 +354,12 @@ fluentd:
352354
CONTAINER_TAIL_PARSER_TYPE: "/^(?<time>.+) (?<stream>stdout|stderr)( (?<tags>.))? (?<log>.*)$/"
353355
354356
controller:
357+
replicas: ${CONTROLLER_REPLICAS}
355358
imageRegistry: ${DRYCC_REGISTRY}
356359
appStorageClass: ${CONTROLLER_APP_STORAGE_CLASS:-"drycc-storage"}
357360
358361
redis:
362+
replicas: ${REDIS_REPLICAS}
359363
imageRegistry: ${DRYCC_REGISTRY}
360364
persistence:
361365
enabled: true
@@ -374,17 +378,20 @@ storage:
374378
storageClass: ${STORAGE_MINIO_PERSISTENCE_STORAGE_CLASS:-""}
375379
meta:
376380
pd:
381+
replicas: ${STORAGE_META_PD_REPLICAS}
377382
persistence:
378383
enabled: true
379384
size: ${STORAGE_META_PD_PERSISTENCE_SIZE:-10Gi}
380385
storageClass: ${STORAGE_META_PD_PERSISTENCE_STORAGE_CLASS:-""}
381386
tikv:
387+
replicas: ${STORAGE_META_TIKV_REPLICAS}
382388
persistence:
383389
enabled: true
384390
size: ${STORAGE_META_TIKV_PERSISTENCE_SIZE:-10Gi}
385391
storageClass: ${STORAGE_META_TIKV_PERSISTENCE_STORAGE_CLASS:-""}
386392
387393
rabbitmq:
394+
replicas: ${RABBITMQ_REPLICAS}
388395
imageRegistry: ${DRYCC_REGISTRY}
389396
username: "${RABBITMQ_USERNAME}"
390397
password: "${RABBITMQ_PASSWORD}"
@@ -397,13 +404,15 @@ imagebuilder:
397404
imageRegistry: ${DRYCC_REGISTRY}
398405
399406
influxdb:
407+
replicas: ${INFLUXDB_REPLICAS}
400408
imageRegistry: ${DRYCC_REGISTRY}
401409
persistence:
402410
enabled: true
403411
size: ${INFLUXDB_PERSISTENCE_SIZE:-5Gi}
404412
storageClass: ${INFLUXDB_PERSISTENCE_STORAGE_CLASS:-""}
405413
406414
logger:
415+
replicas: ${LOGGER_REPLICAS}
407416
imageRegistry: ${DRYCC_REGISTRY}
408417
409418
monitor:
@@ -418,11 +427,13 @@ monitor:
418427
419428
420429
passport:
430+
replicas: ${PASSPORT_REPLICAS}
421431
imageRegistry: ${DRYCC_REGISTRY}
422432
adminUsername: ${DRYCC_ADMIN_USERNAME}
423433
adminPassword: ${DRYCC_ADMIN_PASSWORD}
424434
425435
registry:
436+
replicas: ${REGISTRY_REPLICAS}
426437
imageRegistry: ${DRYCC_REGISTRY}
427438
428439
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)