From e46b471d8c026af6093cc52fa4e28fe66b3cd572 Mon Sep 17 00:00:00 2001 From: Sithara Nambiar Date: Tue, 28 Jul 2020 10:21:03 +0530 Subject: Update of developer info for using so monitoring Issue-ID: SO-3103 Signed-off-by: Sithara Nambiar Change-Id: I620d7221a805751c675d984b2a5bf02b1970f14d --- docs/developer_info/Working_with_so_monitoring.rst | 70 +++++++++++++++++++++ docs/developer_info/developer_information.rst | 1 + docs/images/configmap.png | Bin 0 -> 440254 bytes docs/images/nodemap.png | Bin 0 -> 48567 bytes docs/images/nodeport.png | Bin 0 -> 122080 bytes docs/images/ui.png | Bin 0 -> 47873 bytes 6 files changed, 71 insertions(+) create mode 100644 docs/developer_info/Working_with_so_monitoring.rst create mode 100644 docs/images/configmap.png create mode 100644 docs/images/nodemap.png create mode 100644 docs/images/nodeport.png create mode 100644 docs/images/ui.png diff --git a/docs/developer_info/Working_with_so_monitoring.rst b/docs/developer_info/Working_with_so_monitoring.rst new file mode 100644 index 0000000000..18b6d948c0 --- /dev/null +++ b/docs/developer_info/Working_with_so_monitoring.rst @@ -0,0 +1,70 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 +.. Copyright 2017 Huawei Technologies Co., Ltd. + +Working with SO Monitoring +========================== + +After the SO code is fully deployed, certain changes needs to be made in order to access the so-monitoring ui. + +1. Change the service type to NodePort +--------------------------------------- + +By default, the type of the so monitoring service is ClusterIP, which makes the Service only reachable from within the cluster. +This is changed to NodePort, which is used to expose the service at a static port . Hence we will be able to contact the NodePort Service, from outside the cluster, by requesting :. + +Command used to get the service configuration of so monitoring is: + +**sudo kubectl edit svc so-monitoring -n onap** + +.. image:: ../images/nodeport.png + +2. Add the credentials to login +-------------------------------- + +The override.yaml needs to be added with the login credentials, that is the username and the password in encrypted form. + +.. code-block:: bash + + spring: + main: + allow-bean-definition-overriding: true + security: + usercredentials: + - + username: gui + password: '$2a$10$Fh9ffgPw2vnmsghsRD3ZauBL1aKXebigbq3BB1RPWtE62UDILsjke' + role: GUI-Client + +This override.yaml can be directly edited in case of local setup using docker. + +When deploying in any environment using OOM, then after deployment the configmap needs to be edited. As configmap is the one reading the override.yaml. + +**Note** : Before deployment , if we add these changes in override.yaml ,then it may give parsing error in configmap while deployment. And after deployment the permissions on override.yaml don't allow us to edit it. So the best option is to edit the configmap using the below command and restart the pod. + +**kubectl -n onap edit configmap dev-so-monitoring-app-configmap** + +.. image:: ../images/configmap.png + +Special care needs to be given to the indentation. spring needs to be inline with the mso already present and others added accordingly. + +3. Login to SO Monitoring +------------------------- + +We need to first identify the external port which its mapped to using the following command : + +**sudo kubectl -n onap get svc | grep so-monitoring** + +.. image:: ../images/nodemap.png + +Then access the UI of so monitoring , for example by http://:30224/ + +username : gui, +password: password1$ + + +.. image:: ../images/ui.png + + + + diff --git a/docs/developer_info/developer_information.rst b/docs/developer_info/developer_information.rst index 10ea8360b9..63338de898 100644 --- a/docs/developer_info/developer_information.rst +++ b/docs/developer_info/developer_information.rst @@ -11,6 +11,7 @@ SO Developer Information Building_SO.rst Working_with_SO_Docker.rst + Working_with_so_monitoring.rst Camunda_Cockpit_Community_Edition.rst Camunda_Cockpit_Enterprise_Edition.rst Camunda_Modeler.rst diff --git a/docs/images/configmap.png b/docs/images/configmap.png new file mode 100644 index 0000000000..3683de3d57 Binary files /dev/null and b/docs/images/configmap.png differ diff --git a/docs/images/nodemap.png b/docs/images/nodemap.png new file mode 100644 index 0000000000..8dfda6ca12 Binary files /dev/null and b/docs/images/nodemap.png differ diff --git a/docs/images/nodeport.png b/docs/images/nodeport.png new file mode 100644 index 0000000000..53bc02f7f9 Binary files /dev/null and b/docs/images/nodeport.png differ diff --git a/docs/images/ui.png b/docs/images/ui.png new file mode 100644 index 0000000000..1c075bab22 Binary files /dev/null and b/docs/images/ui.png differ -- cgit 1.2.3-korg