Skip to content

Commit d0e86e9

Browse files
committed
Merge branch 'main' of github.com:drycc/workflow
2 parents a1bb80b + a469547 commit d0e86e9

2 files changed

Lines changed: 44 additions & 41 deletions

File tree

_scripts/install.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ function install_drycc {
321321
echo -e "\\033[32m---> Start installing workflow...\\033[0m"
322322
RABBITMQ_USERNAME=$(cat /proc/sys/kernel/random/uuid)
323323
RABBITMQ_PASSWORD=$(cat /proc/sys/kernel/random/uuid)
324+
INFLUXDB_USERNAME=$(cat /proc/sys/kernel/random/uuid)
325+
INFLUXDB_PASSWORD=$(cat /proc/sys/kernel/random/uuid)
326+
324327

325328
cat << EOF > "/tmp/drycc-values.yaml"
326329
global:
@@ -406,6 +409,8 @@ imagebuilder:
406409
influxdb:
407410
replicas: ${INFLUXDB_REPLICAS}
408411
imageRegistry: ${DRYCC_REGISTRY}
412+
user: "${INFLUXDB_USERNAME}"
413+
password: "${INFLUXDB_PASSWORD}"
409414
persistence:
410415
enabled: true
411416
size: ${INFLUXDB_PERSISTENCE_SIZE:-5Gi}
@@ -475,6 +480,8 @@ EOF
475480
--create-namespace --wait --timeout 30m0s
476481
echo -e "\\033[32m---> Rabbitmq username: $RABBITMQ_USERNAME\\033[0m"
477482
echo -e "\\033[32m---> Rabbitmq password: $RABBITMQ_PASSWORD\\033[0m"
483+
echo -e "\\033[32m---> Influxdb username: $INFLUXDB_USERNAME\\033[0m"
484+
echo -e "\\033[32m---> Influxdb password: $INFLUXDB_PASSWORD\\033[0m"
478485
}
479486

480487
function install_helmbroker {
@@ -494,7 +501,7 @@ function install_helmbroker {
494501
--set persistence.size=${HELMBROKER_PERSISTENCE_SIZE:-5Gi} \
495502
--set persistence.storageClass=${HELMBROKER_PERSISTENCE_STORAGE_CLASS:-"drycc-storage"} \
496503
--set platformDomain=${PLATFORM_DOMAIN} \
497-
--set certManagerEqnabled=${CERT_MANAGER_ENABLED:-true} \
504+
--set certManagerEnabled=${CERT_MANAGER_ENABLED:-true} \
498505
--set username=${HELMBROKER_USERNAME} \
499506
--set password=${HELMBROKER_PASSWORD} \
500507
--set environment.HELMBROKER_CELERY_BROKER="amqp://${RABBITMQ_USERNAME}:${RABBITMQ_PASSWORD}@drycc-rabbitmq.drycc.svc.cluster.local:5672/drycc" \

charts/workflow/values.yaml

Lines changed: 36 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -92,39 +92,29 @@ global:
9292
passportLocation: "on-cluster"
9393

9494
storage:
95-
# bucket lookup supported by the server.
96-
# Valid options are '[dns, path]'
97-
# When the storage is off-cluster, this value can be set
98-
# Otherwise, Hard coded as `path`
99-
lookup: "path"
100-
# health check url is only available in off-cluster storage
101-
health: ""
102-
# endpoint configuration is only available in off-cluster storage
103-
endpoint: ""
104-
# If storage is off-cluster, accesskey and secretkey must be specified
105-
# Otherwise, they are generated randomly, if they are empty
106-
accesskey: ""
107-
secretkey: ""
108-
# The following three bucket name parameters are valid only in cluster-off
109-
# In the case of cluster-on, they are hard coded and named: builder, registry
110-
builderBucket: "drycc-builder-bucket"
111-
registryBucket: "drycc-registry-bucket"
112-
# Configure the following ONLY if you want persistence for on-cluster storage
113-
persistence:
114-
enabled: false # Set to true to enable persistence
115-
accessMode: ReadWriteOnce
116-
size: 5Gi # PVC size
117-
## storage data Persistent Volume Storage Class
118-
## If defined, storageClassName: <storageClass>
119-
## If set to "-", storageClassName: "", which disables dynamic provisioning
120-
## If undefined (the default) or set to null, no storageClassName spec is
121-
## set, choosing the default provisioner. (gp2 on AWS, standard on
122-
## GKE, AWS & OpenStack)
123-
##
124-
## Storage class of PV to bind. By default it looks for standard storage class.
125-
## If the PV uses a different storage class, specify that here.
126-
storageClass: ""
127-
volumeName: ""
95+
minio:
96+
# Storage zone count
97+
zones: 1
98+
# Device count of per replica
99+
drives: 4
100+
# Number of replicas per zone
101+
replicas: 1
102+
persistence:
103+
enabled: false
104+
accessMode: ReadWriteOnce
105+
size: 5Gi
106+
storageClass: ""
107+
meta:
108+
pd:
109+
persistence:
110+
enabled: false
111+
size: 5Gi
112+
storageClass: ""
113+
tikv:
114+
persistence:
115+
enabled: false
116+
size: 5Gi
117+
storageClass: ""
128118

129119
# Set the default (global) way of how Application (your own) images are
130120
# pulled from within the Controller.
@@ -155,19 +145,25 @@ controller:
155145
replicas: 1
156146
# Set celery replicas
157147
celeryReplicas: 1
158-
# Configuring this will no longer use the built-in database component
148+
## databaseUrl and databaseReplicaUrl are will no longer use the built-in database component
159149
databaseUrl: ""
150+
databaseReplicaUrl: ""
160151
# Configuring this will no longer use the built-in rabbitmq component
161152
rabbitmqUrl: ""
162153

163154
database:
164155
# The following parameters are configured only when using an on-cluster Database instance
165-
# If left empty they will be generated using randAlphaNum
166-
username: ""
156+
# The username and password to be used by the on-cluster database.
157+
# If left empty they will be generated
158+
# The user name should be set to lowercase letters
159+
superuser: "postgres"
160+
superuserPassword: ""
161+
replicator: "standby"
162+
replicatorPassword: ""
163+
user: ""
167164
password: ""
168165
persistence:
169166
enabled: false # Set to true to enable persistence
170-
accessMode: ReadWriteOnce
171167
size: 5Gi # PVC size
172168
## database data Persistent Volume Storage Class
173169
## If defined, storageClassName: <storageClass>
@@ -179,7 +175,6 @@ database:
179175
## Storage class of PV to bind. By default it looks for standard storage class.
180176
## If the PV uses a different storage class, specify that here.
181177
storageClass: ""
182-
volumeName: ""
183178

184179
redis:
185180
# The addrs parameters are configured only when using an off-cluster Redis instance
@@ -216,7 +211,7 @@ influxdb:
216211
# URL configuration is only available in off-cluster Influx database
217212
url: "http://my.influx.url:8086"
218213
bucket: "kubernetes"
219-
org: "org"
214+
org: "drycc"
220215
# If influxdb is off-cluster, it must be specified
221216
# Otherwise, it is generated randomly, if it is empty
222217
token: ""
@@ -287,8 +282,9 @@ passport:
287282
# The following parameters are configured only when using an on-cluster passport
288283
# Set passport deployment replicas
289284
replicas: 1
290-
# Configuring this will no longer use the built-in database component
285+
## databaseUrl and databaseReplicaUrl are will no longer use the built-in database component
291286
databaseUrl: ""
287+
databaseReplicaUrl: ""
292288

293289
# acme configuration takes effect if and only if certManagerEnabled is true
294290
acme:

0 commit comments

Comments
 (0)