From 35ad775cfadd1bea13b879236278d31d8d0fa1f3 Mon Sep 17 00:00:00 2001 From: Luke Repko Date: Tue, 5 Mar 2024 11:15:32 -0600 Subject: [PATCH] Document helm install for Gnocchi --- docs/deploy-required-infrastructure.md | 89 ++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) diff --git a/docs/deploy-required-infrastructure.md b/docs/deploy-required-infrastructure.md index bf0d79916..caeffe71d 100644 --- a/docs/deploy-required-infrastructure.md +++ b/docs/deploy-required-infrastructure.md @@ -332,6 +332,95 @@ helm upgrade --install postgresql ./postgresql \ > In a production like environment you may need to include production specific files like the example variable file found in `helm-configs/prod-example-openstack-overrides.yaml`. +## Deploy Gnocchi + +### Create Secrets + +```shell +kubectl --namespace openstack create secret generic gnocchi-admin \ + --type Opaque \ + --from-literal=password="$(< /dev/urandom tr -dc _A-Za-z0-9 | head -c${1:-32};echo;)" +kubectl --namespace openstack create secret generic gnocchi-db-password \ + --type Opaque \ + --from-literal=password="$(< /dev/urandom tr -dc _A-Za-z0-9 | head -c${1:-32};echo;)" +kubectl --namespace openstack create secret generic gnocchi-pgsql-password \ + --type Opaque \ + --from-literal=password="$(< /dev/urandom tr -dc _A-Za-z0-9 | head -c${1:-32};echo;)" +``` + +### Create ceph-etc configmap + +While the below example should work fine for most environments, depending +on the use case it may be necessary to provide additional client configuration +options for ceph. The below simply creates the expected `ceph-etc` +ConfigMap with the ceph.conf needed by Gnocchi to establish a connection +to the mon host(s) via the rados client. + +```shell +kubectl apply -n openstack -f - < In a production like environment you may need to include production specific files like the example variable file found in + `helm-configs/prod-example-openstack-overrides.yaml`. + +### Validate the metric endpoint + +#### Pip install gnocchiclient and python-ceilometerclient + +```shell +kubectl exec -it openstack-admin-client -n openstack -- /var/lib/openstack/bin/pip install python-ceilometerclient gnocchiclient +``` + +#### Verify metric list functionality + +```shell +kubectl exec -it openstack-admin-client -n openstack -- openstack metric list +``` + ## Validation our infrastructure is operational Before going any further make sure you validate that the backends are operational.