Kubernetes resource optimization with horizontal pod autoscaling via custom metrics and Prometheus Adapter