Skip to content

Can't set replicaCount to 0 #195

Closed

Description

@josephshanak

You are not able to set a replicaCount to 0. Doing so results in a 1 replica instead of 0 replicas. The use case is this is that I'd like to scale down the minecraft server while making other changes to the chart. However, when I apply the chart it keeps scaling it back to 1.

This is pretty easy to repro by running:

helm template   --set 'replicaCount=0' --set 'minecraftServer.eula=true' ./charts/minecraft | grep replicas

which returns

  replicas: 1

However using other values works:

helm template   --set 'replicaCount=3' --set 'minecraftServer.eula=true' ./charts/minecraft | grep replicas

returns

  replicas: 3

I believe this is caused by: helm/helm#3164

That issue is attached to several work-around PRs, which may be helpful to resolve this.

Activity

  1. josephshanak commented on Mar 17, 2024

    @josephshanak
    ContributorAuthor

    A possible work-around is to set minecraftServer.eula to false. However, I think this would only work if you are using persistence.dataDir.existingClaim.

  2. itzg commented on Mar 17, 2024

    @itzg
    Owner

    It would be great if someone submitted a PR for this.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions