Skip to content

Conversation

@Rishang
Copy link
Contributor

@Rishang Rishang commented Aug 28, 2022

For Horizontal Pod Autoscaling,

While using autoscaling based on targetAverageUtilization, in was facing this issue in DevSpace version : 6.0.1

Input:

  replicas: 1
  autoScaling:
    horizontal:  
      maxReplicas: 3
      averageRelativeMemory: 40

Error:

ValidationError(HorizontalPodAutoscaler.spec.metrics[0].resource.targetAverageUtilization): invalid type for io.k8s.api.autoscaling.v2beta1.ResourceMetricSource.targetAverageUtilization: got "string", expected "integer"

References:
https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale

targetAverageUtilization requires integer, but string was been given, so have prvided fixes for that.

@Rishang
Copy link
Contributor Author

Rishang commented Aug 28, 2022

Fixes: for issue #81

@FabianKramm FabianKramm merged commit 04dfe4d into loft-sh:master Sep 1, 2022
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 this pull request may close these issues.

2 participants