incubator-devlake-helm-chart icon indicating copy to clipboard operation
incubator-devlake-helm-chart copied to clipboard

Dynamic replica management using replicaCount to enable or disable DEV-LAKE.

Open angelsanchezdck opened this issue 10 months ago • 5 comments

Knowing that the dev-lake deployments cannot have more than one replica, we would like to have the ability to manage the replicas of StatefulSet and deployments to set to 0, and then completely disable devlake-helm-chart.

Current configuration:

spec:
  replicas: 1

Changes for StatefulSet and deployments :

spec:
  replicas: {{ if gt .Values.replicaCount 1 }}1{{ else }}{{ .Values.replicaCount }}{{ end }}

If you find it convenient:

Changes for StatefulSet and Deployment (devlake-ui)

spec:
  replicas: {{ .Values.replicaCount }}

Change for Deployment (dev-lake)

spec:
  replicas: {{ if gt .Values.replicaCount 1 }}1{{ else }}{{ .Values.replicaCount }}{{ end }}

angelsanchezdck avatar Mar 27 '24 01:03 angelsanchezdck

hi @angelsanchezdck , that's a good point, could you open a pr for that?

ZhangNing10 avatar Mar 28 '24 08:03 ZhangNing10

config-ui can have multiple replicas @angelsanchezdck

ZhangNing10 avatar Mar 28 '24 08:03 ZhangNing10

Done :heavy_check_mark: pr: https://github.com/apache/incubator-devlake-helm-chart/pull/269

angelsanchezdck avatar Apr 01 '24 22:04 angelsanchezdck

HI, any update?

angelsanchezdck avatar Jun 17 '24 17:06 angelsanchezdck

hi @angelsanchezdck , thanks a lot for the pr! appreciated! i see there is conflict, could you fix it?

ZhangNing10 avatar Jun 18 '24 10:06 ZhangNing10