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

Unable to enable auto-scaling #789

Closed
theoriginalkien opened this issue Nov 10, 2019 · 1 comment · Fixed by #798
Closed

Unable to enable auto-scaling #789

theoriginalkien opened this issue Nov 10, 2019 · 1 comment · Fixed by #798

Comments

@theoriginalkien
Copy link

What happened?

unable to use auto-scaling feature

What did you expect to happen instead?

auto-scaling should be enabled

How can we reproduce the bug? (as minimally and precisely as possible)

Follow the guide in (https://devspace.cloud/docs/cli/deployment/components/configuration/scaling#configure-horizontal-auto-scaling)

Sample yaml

deployments:
- name: testservice
  helm:
    componentChart: true
    values:
      replicas: 2
      autoScaling:
        horizontal:
          maxReplicas: 10
          averageCPU: 800m
      containers:
      - image: 
      service:
        ports:
        - port: 80
      rollingUpdate:
        enabled: true
        maxUnavailable: "50%"

Local Environment:

  • Operating System: windows
  • Deployment method: helm

Kubernetes Cluster:

  • Cloud Provider: azure
  • Kubernetes Version: 1.14.8

Anything else we need to know?

Error message:

Unable to deploy helm chart: helm upgrade: rpc error: code = Unknown desc = render error in "component-chart/templates/pod-autoscaling.yaml": template: component-chart/templates/pod-autoscaling.yaml:24:14: executing "component-chart/templates/pod-autoscaling.yaml" at <$.Release.Name.name>: can't evaluate field name in type interface {}

/kind bug

@LukasGentele
Copy link
Contributor

Thanks for reporting this, @kienct89. I fixed this issue and pushed a new version of the component Helm chart. When you use componentChart: true, DevSpace uses v0.0.6 of this chart right now. The next release will use v0.0.7 which fixes this issue.

If you want to use the fixed chart before we release the next DevSpace version, you can replace componentChart: true with this:

    chart:
      name: component-chart
      version: v0.0.7
      repo: https://charts.devspace.cloud

After the next CLI version has been release, I would recommend switching to componentChart: true again because this makes sure that DevSpace automatically updates the chart version for you if there is a new version and automatically migrates the values for the chart if there are any changes.

I hope this solves the issue for you. Let me know if there are any other questions or unsolved problems with component auto-scaling. I'm leaving this open until the new release is out which will upgrade the component chart version to v0.0.7.

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

Successfully merging a pull request may close this issue.

2 participants