diff --git a/.github/workflows/kustomize-memcached.yaml b/.github/workflows/kustomize-memcached.yaml index dbdfdcce..15700c27 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 4d6a4a8f..09cb6db9 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 da264585..de69bbfe 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 c3662335..9152ad0f 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 00000000..448808d2 --- /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