# Create HPA imperatively for Memory

**URL:** <https://discuss.kubernetes.io/t/create-hpa-imperatively-for-memory/27840>\
**Category:** General Discussions\
**Tags:** docs, development\
**Created:** [April 10, 2024, 6:13pm UTC](https://discuss.kubernetes.io/t/create-hpa-imperatively-for-memory/27840 "2024-04-10T18:13:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dejanualex](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/dejanualex/32/14289_2.png) [@dejanualex](https://discuss.kubernetes.io/u/dejanualex)\
**Post date:** [April 10, 2024, 6:13pm UTC](https://discuss.kubernetes.io/t/create-hpa-imperatively-for-memory/27840/1 "2024-04-10T18:13:55Z")

</div>

I’ve seen in docs that one can create imperatively HPA using `kubectl` specifying the target average CPU utilization  
`kubectl autoscale deployment <deployment> --cpu-percent=50 --min=1 --max=10` but how come there’s no flag for Memory?
