pixie-demos icon indicating copy to clipboard operation
pixie-demos copied to clipboard

Error deploying the demo app in HPA with Custom Metrics in Kubernetes

Open roynilanjan opened this issue 1 year ago • 0 comments

Hello I tried implementing this tutorial https://github.com/pixie-io/pixie-demos/tree/main/custom-k8s-metrics-demo . While deploying the test application with kubectl apply -f demo-app.yaml i get the following error : Warning: autoscaling/v2beta2 HorizontalPodAutoscaler is deprecated in v1.23+, unavailable in v1.26+; use autoscaling/v2 HorizontalPodAutoscaler deployment.apps/echo-service unchanged service/echo-service unchanged Error from server (BadRequest): error when creating "demo-app.yaml": HorizontalPodAutoscaler in version "v2beta2" cannot be handled as a HorizontalPodAutoscaler: json: cannot unmarshal string into Go struct field HPAScalingPolicy.spec.behavior.scaleDown.policies.value of type int32

roynilanjan avatar Apr 26 '23 14:04 roynilanjan