Skip to content

Commit 141a788

Browse files
committed
chore(workflow): add timeseries
1 parent 038f3e4 commit 141a788

4 files changed

Lines changed: 50 additions & 0 deletions

File tree

_scripts/install.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,16 @@ database:
420420
size: ${DATABASE_PERSISTENCE_SIZE:-5Gi}
421421
storageClass: ${DATABASE_PERSISTENCE_STORAGE_CLASS:-""}
422422
423+
timeseries:
424+
replicas: ${TIMESERIES_REPLICAS}
425+
imageRegistry: ${DRYCC_REGISTRY}
426+
limitsMemory: "256Mi"
427+
limitsHugepages2Mi: "256Mi"
428+
persistence:
429+
enabled: true
430+
size: ${TIMESERIES_PERSISTENCE_SIZE:-5Gi}
431+
storageClass: ${TIMESERIES_PERSISTENCE_STORAGE_CLASS:-""}
432+
423433
fluentd:
424434
imageRegistry: ${DRYCC_REGISTRY}
425435
daemonEnvironment:

charts/workflow/Chart.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ dependencies:
1313
- name: database
1414
repository: oci://registry.drycc.cc/charts-testing
1515
version: x.x.x
16+
- name: timeseries
17+
repository: oci://registry.drycc.cc/charts-testing
18+
version: x.x.x
1619
- name: fluentd
1720
repository: oci://registry.drycc.cc/charts-testing
1821
version: x.x.x

charts/workflow/values.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ global:
2525
# - off-cluster: Run PostgreSQL outside the Kubernetes cluster
2626
databaseLocation: "on-cluster"
2727

28+
# Set the location of Workflow's Timeseries database
29+
#
30+
# Valid values are:
31+
# - on-cluster: Run PostgreSQL within the Kubernetes cluster (credentials are generated
32+
# automatically; backups are sent to object storage
33+
# configured above)
34+
# - off-cluster: Run PostgreSQL outside the Kubernetes cluster
35+
timeseriesLocation: "on-cluster"
36+
2837
# Set the location of Workflow's Redis instance
2938
#
3039
# Valid values are:
@@ -172,6 +181,31 @@ database:
172181
## If the PV uses a different storage class, specify that here.
173182
storageClass: ""
174183

184+
timeseries:
185+
# The following parameters are configured only when using an on-cluster Database instance
186+
# The username and password to be used by the on-cluster database.
187+
# If left empty they will be generated
188+
# The user name should be set to lowercase letters
189+
superuser: "postgres"
190+
superuserPassword: ""
191+
replicator: "standby"
192+
replicatorPassword: ""
193+
user: ""
194+
password: ""
195+
persistence:
196+
enabled: false # Set to true to enable persistence
197+
size: 5Gi # PVC size
198+
## database data Persistent Volume Storage Class
199+
## If defined, storageClassName: <storageClass>
200+
## If set to "-", storageClassName: "", which disables dynamic provisioning
201+
## If undefined (the default) or set to null, no storageClassName spec is
202+
## set, choosing the default provisioner. (gp2 on AWS, standard on
203+
## GKE, AWS & OpenStack)
204+
##
205+
## Storage class of PV to bind. By default it looks for standard storage class.
206+
## If the PV uses a different storage class, specify that here.
207+
storageClass: ""
208+
175209
redis:
176210
# The addrs parameters are configured only when using an off-cluster Redis instance
177211
addrs: "" # A list of clusters: "127.0.0.1:7001/1,127.0.0.2:7002/1"

src/quickstart/install-workflow.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@ RABBITMQ_PERSISTENCE_STORAGE_CLASS | StorangeClass of `rabbitmq`; defaul
225225
DATABASE_REPLICAS | Number of database replicas to deploy
226226
DATABASE_PERSISTENCE_SIZE | The size of the persistence space allocated to `database`, which is `5Gi` by default
227227
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
228231
PASSPORT_REPLICAS | Number of passport replicas to deploy
229232
REGISTRY_REPLICAS | Number of registry replicas to deploy
230233
HELMBROKER_REPLICAS | Number of helmbroker api replicas to deploy

0 commit comments

Comments
 (0)