Skip to content

Commit c520daa

Browse files
committed
Merge branch 'main' of github.com:drycc/workflow into main
2 parents 0a48e6e + 569f822 commit c520daa

2 files changed

Lines changed: 25 additions & 1 deletion

File tree

_scripts/install.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,8 @@ function install_metallb() {
204204

205205
echo -e "\\033[32m--->Waiting metallb pods ready...\\033[0m"
206206
kubectl wait pods -n metallb --all --for condition=Ready --timeout=600s
207+
echo -e "\\033[32m--->Waiting metallb webhook ready...\\033[0m"
208+
sleep 30s
207209

208210
if [[ -z "${METALLB_CONFIG_FILE}" ]] ; then
209211
echo -e "\\033[32m---> Metallb using the default configuration.\\033[0m"
@@ -333,14 +335,16 @@ global:
333335
ingressClass: traefik
334336
335337
builder:
336-
imageRegistry: ${DRYCC_REGISTRY}
338+
replicas: ${BUILDER_REPLICAS}
339+
imageRegistry: ${DRYCC_REGISTRY}
337340
service:
338341
type: LoadBalancer
339342
annotations:
340343
metallb.universe.tf/address-pool: public
341344
metallb.universe.tf/allow-shared-ip: drycc
342345
343346
database:
347+
replicas: ${DATABASE_REPLICAS}
344348
imageRegistry: ${DRYCC_REGISTRY}
345349
limitsMemory: "256Mi"
346350
limitsHugepages2Mi: "256Mi"
@@ -355,10 +359,12 @@ fluentd:
355359
CONTAINER_TAIL_PARSER_TYPE: "/^(?<time>.+) (?<stream>stdout|stderr)( (?<tags>.))? (?<log>.*)$/"
356360
357361
controller:
362+
replicas: ${CONTROLLER_REPLICAS}
358363
imageRegistry: ${DRYCC_REGISTRY}
359364
appStorageClass: ${CONTROLLER_APP_STORAGE_CLASS:-"drycc-storage"}
360365
361366
redis:
367+
replicas: ${REDIS_REPLICAS}
362368
imageRegistry: ${DRYCC_REGISTRY}
363369
persistence:
364370
enabled: true
@@ -377,17 +383,20 @@ storage:
377383
storageClass: ${STORAGE_MINIO_PERSISTENCE_STORAGE_CLASS:-""}
378384
meta:
379385
pd:
386+
replicas: ${STORAGE_META_PD_REPLICAS}
380387
persistence:
381388
enabled: true
382389
size: ${STORAGE_META_PD_PERSISTENCE_SIZE:-10Gi}
383390
storageClass: ${STORAGE_META_PD_PERSISTENCE_STORAGE_CLASS:-""}
384391
tikv:
392+
replicas: ${STORAGE_META_TIKV_REPLICAS}
385393
persistence:
386394
enabled: true
387395
size: ${STORAGE_META_TIKV_PERSISTENCE_SIZE:-10Gi}
388396
storageClass: ${STORAGE_META_TIKV_PERSISTENCE_STORAGE_CLASS:-""}
389397
390398
rabbitmq:
399+
replicas: ${RABBITMQ_REPLICAS}
391400
imageRegistry: ${DRYCC_REGISTRY}
392401
username: "${RABBITMQ_USERNAME}"
393402
password: "${RABBITMQ_PASSWORD}"
@@ -400,6 +409,7 @@ imagebuilder:
400409
imageRegistry: ${DRYCC_REGISTRY}
401410
402411
influxdb:
412+
replicas: ${INFLUXDB_REPLICAS}
403413
imageRegistry: ${DRYCC_REGISTRY}
404414
user: "${INFLUXDB_USERNAME}"
405415
password: "${INFLUXDB_PASSWORD}"
@@ -409,6 +419,7 @@ influxdb:
409419
storageClass: ${INFLUXDB_PERSISTENCE_STORAGE_CLASS:-""}
410420
411421
logger:
422+
replicas: ${LOGGER_REPLICAS}
412423
imageRegistry: ${DRYCC_REGISTRY}
413424
414425
monitor:
@@ -423,11 +434,13 @@ monitor:
423434
424435
425436
passport:
437+
replicas: ${PASSPORT_REPLICAS}
426438
imageRegistry: ${DRYCC_REGISTRY}
427439
adminUsername: ${DRYCC_ADMIN_USERNAME}
428440
adminPassword: ${DRYCC_ADMIN_PASSWORD}
429441
430442
registry:
443+
replicas: ${REGISTRY_REPLICAS}
431444
imageRegistry: ${DRYCC_REGISTRY}
432445
433446
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)