Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

helm chart: replicaCount should be unset by default #380

Open
dex4er opened this issue Oct 12, 2024 · 0 comments
Open

helm chart: replicaCount should be unset by default #380

dex4er opened this issue Oct 12, 2024 · 0 comments

Comments

@dex4er
Copy link

dex4er commented Oct 12, 2024

I would like to be able to disable a number of replicas and NOT set HPA at the same time because I use KEDA, which auto-creates HPAs.

Currently if HPA is not created then replica count is set always to 1 and this setting conflicts with KDEA autoscaler.

With Flux I install it as:

apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
  name: podinfo
spec:
  releaseName: podinfo
  chart:
    spec:
      chart: podinfo
      sourceRef:
        kind: HelmRepository
        name: podinfo
      reconcileStrategy: ChartVersion
  values:
    hpa:
      ## It disables static number of replicas for Deployment.
      ## However, we use KEDA then HPA is removed in a patch
      enabled: true
  postRenderers:
    - kustomize:
        patches:
          - patch: |-
              $patch: delete
              apiVersion: autoscaling/v2
              kind: HorizontalPodAutoscaler
              metadata:
                name: ANY
            target:
              kind: HorizontalPodAutoscaler

but it looks rather like a nice workaround for the initial problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant