Dynamic kubernetes scaling based on historic data sample code using ML

Hi all,

Could you please share some sample code to dynamically scale the Kubernetes based on historic data using machine learning or any other approaches.

thanks in advance.