diff --git a/.github/workflows/kustomize-memcached.yaml b/.github/workflows/kustomize-memcached.yaml index dbdfdcceb..15700c273 100644 --- a/.github/workflows/kustomize-memcached.yaml +++ b/.github/workflows/kustomize-memcached.yaml @@ -12,6 +12,7 @@ jobs: overlays: - base - aio + - base-monitoring name: Kustomize runs-on: ubuntu-latest steps: diff --git a/docs/deploy-required-infrastructure.md b/docs/deploy-required-infrastructure.md index 4d6a4a8f0..09cb6db92 100644 --- a/docs/deploy-required-infrastructure.md +++ b/docs/deploy-required-infrastructure.md @@ -93,6 +93,15 @@ kubectl kustomize --enable-helm /opt/genestack/kustomize/memcached/base | kubect > 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. +### Alternative - Deploy the Memcached Cluster With Monitoring Enabled + +``` shell +kubectl kustomize --enable-helm /opt/genestack/kustomize/memcached/base-monitoring | kubectl apply --namespace openstack -f - +``` + +> NOTE Memcached has a base-monitoring configuration which is HA and production ready that also includes a metrics exporter for prometheus metrics collection. If you'd like to have monitoring enabled for your memcached cluster ensure the prometheus operator is installed first ([Deploy Prometheus](prometheus.md)). + + ### Verify readiness with the following command. ``` shell diff --git a/docs/prometheus-mysql-exporter.md b/docs/prometheus-mysql-exporter.md index da2645855..de69bbfec 100644 --- a/docs/prometheus-mysql-exporter.md +++ b/docs/prometheus-mysql-exporter.md @@ -22,4 +22,4 @@ cd /opt/genestack/kustomize/prometheus-mysql-exporter kubectl kustomize --enable-helm . | kubectl create -n openstack -f - ``` -If the installation is succesful, you should see the exporter pod in openstack namespace. +If the installation is successful, you should see the exporter pod in openstack namespace. diff --git a/docs/prometheus-rabbitmq-exporter.md b/docs/prometheus-rabbitmq-exporter.md index c3662335b..9152ad0f5 100644 --- a/docs/prometheus-rabbitmq-exporter.md +++ b/docs/prometheus-rabbitmq-exporter.md @@ -12,4 +12,4 @@ cd /opt/genestack/kustomize/prometheus-rabbitmq-exporter kubectl kustomize --enable-helm . | kubectl create -n openstack -f - ``` -If the installation is succesful, you should see the exporter pod in openstack namespace. +If the installation is successful, you should see the exporter pod in openstack namespace. diff --git a/kustomize/memcached/base-monitoring/kustomization.yaml b/kustomize/memcached/base-monitoring/kustomization.yaml new file mode 100644 index 000000000..448808d27 --- /dev/null +++ b/kustomize/memcached/base-monitoring/kustomization.yaml @@ -0,0 +1,20 @@ +helmCharts: + - name: memcached + repo: https://marketplace.azurecr.io/helm/v1/repo + releaseName: memcached + valuesInline: + architecture: high-availability + autoscaling: + enabled: true + resources: + requests: + memory: 1Gi + persistence: + enabled: true + size: 10Gi + metrics: + enabled: true + serviceMonitor: + enabled: true + includeCRDs: true + namespace: openstack