pixie-io / pixie-demos

Demos for Pixie: github.com/pixie-io/pixie
https://px.dev
Apache License 2.0
207 stars 56 forks source link

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

Open roynilanjan opened 1 year ago

roynilanjan commented 1 year ago

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