Skip to content

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

Open

Description

@angelsanchezdck

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 }}

Activity

  1. ZhangNing10 commented on Mar 28, 2024

    @ZhangNing10
    Contributor

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

  2. ZhangNing10 commented on Mar 28, 2024

    @ZhangNing10
    Contributor

    config-ui can have multiple replicas @angelsanchezdck

  3. angelsanchezdck commented on Apr 1, 2024

    @angelsanchezdck
    ContributorAuthor

    Done ✔️
    pr: #269

  4. angelsanchezdck commented on Jun 17, 2024

    @angelsanchezdck
    ContributorAuthor

    HI, any update?

  5. ZhangNing10 commented on Jun 18, 2024

    @ZhangNing10
    Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions