!!! example "Run the memcached deployment Script bin/install-memcached.sh
You can include paramaters to deploy aio or base-monitoring. No paramaters deploys base"
``` shell
--8<-- "bin/install-memcached.sh"
```
!!! note
Memcached has a base configuration which is HA and production ready. If you're deploying on a small cluster the `aio` configuration may better suit the needs of the environment.
View the memcached exporter instructions to install a HA ready memcached cluster with monitoring and metric collection enabled.
kubectl --namespace openstack get horizontalpodautoscaler.autoscaling memcached -w
kubectl --namespace openstack \
create secret generic os-memcached \
--type Opaque \
--from-literal=memcache_secret_key="$(< /dev/urandom tr -dc _A-Za-z0-9 | head -c${1:-32};echo;)"
!!! Note
This is a shared secret that is distributed to all services that require it. Rotating this value means updating all services.
!!! Genestack
For more information on how to enable memcached monitoring with prometheus, see the [memcached exporter](prometheus-monitoring-overview.md) documentation.