summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorsaul.gill <saul.gill@est.tech>2023-03-29 16:14:06 +0100
committersaul.gill <saul.gill@est.tech>2023-03-30 11:09:25 +0100
commit9349a1a689383e9c1b2b1e13a8d81688da204643 (patch)
tree09b0cf9c4c60ff3d7a47ea8ff15459084399e6e5 /docs
parentd405151fb7af327892e86cd5673809a231d2879b (diff)
Updated policy/acm OOM install docs
Altered guide to allow install of policy fwk or acm components Added collapse directive to make page more readable Added overide.yaml instructions Added more detailed oom installation guide Issue-ID: POLICY-4607 Change-Id: Ie5de014f9651b1dceb340acd780216a2a75b4b90 Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'docs')
-rw-r--r--docs/conf.py3
-rw-r--r--docs/installation/oom.rst457
-rw-r--r--docs/requirements-docs.txt1
3 files changed, 395 insertions, 66 deletions
diff --git a/docs/conf.py b/docs/conf.py
index a9c42b67..0c28118e 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -22,7 +22,8 @@ extensions = [
'sphinxcontrib.blockdiag',
'sphinxcontrib.seqdiag',
'sphinxcontrib.swaggerdoc',
- 'sphinxcontrib.plantuml'
+ 'sphinxcontrib.plantuml',
+ 'sphinx_toolbox.collapse'
]
#
diff --git a/docs/installation/oom.rst b/docs/installation/oom.rst
index 30efdbe7..d1dca3d9 100644
--- a/docs/installation/oom.rst
+++ b/docs/installation/oom.rst
@@ -3,21 +3,397 @@
.. http://creativecommons.org/licenses/by/4.0
-Policy OOM Installation
------------------------
+Policy/ACM OOM Installation
+---------------------------
.. contents::
:depth: 2
-Policy OOM Charts
-*****************
+Notes
+*****
+* This guide assumes that you have access to a Kubernetes cluster.
+* The examples for this guide were carried out on a 3 node Ubuntu-based cluster. However, cluster software such as microk8s should work just as well.
+
+Cluster Used in this Guide
+**************************
+* Ubuntu-based cluster using Ubuntu 20.04.1 LTS
+* 3 nodes - each having 8GB RAM and 4CPU
+
+Prerequisites
+*************
+* K8s Cluster capable of running kubectl commands
+* Both kubectl client and the server use v1.22.4
+* Helm version v3.6.3 is installed
+* There should be a running chart repo called "local"
+* Chartmuseum used to create the chart repo
+
+Deploy Policy/ACM OOM & Required Charts
+***************************************
The policy K8S charts are located in the `OOM repository <https://gerrit.onap.org/r/gitweb?p=oom.git;a=tree;f=kubernetes/policy;h=78576c7a0d30cb87054e9776326cdde20986e6e3;hb=refs/heads/master>`_.
-Please refer to the OOM documentation on how to install and deploy ONAP.
+Install Helm Plugins
+^^^^^^^^^^^^^^^^^^^^
+Chart museum's **helm-push** plugin should be installed
-Policy Pods
-***********
-To get a listing of the Policy Pods, run the following command:
+.. code-block:: bash
+
+ helm plugin install https://github.com/chartmuseum/helm-push --version 0.10.3
+
+And then we should install the **deploy** and **undeploy** plugins from oom. so, navigate to the oom/kubernetes directory in the above cloned oom gerrit repo.
+
+.. code-block:: bash
+
+ helm plugin install helm/plugins/deploy
+ helm plugin install helm/plugins/undeploy
+
+Package and Upload Charts to Repo
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Navigate to the same oom/kubernetes directory. The **make** command can be used here to package and upload (among other things) the charts to the local chart repo. This command is slow as it has to package and upload all of the helm charts in oom. However, we are skipping linting of the charts and using the **-j** flag to allow us to use multiple threads - this will maximize the speed.
+
+.. code-block:: bash
+
+ make all SKIP_LINT=TRUE -j$(nproc)
+
+Once this is completed, we should be able to see all of the charts in the local helm repo.
+
+.. code-block:: bash
+
+ helm search repo local
+
+ local/policy 12.0.0 ONAP Policy
+ local/policy-apex-pdp 12.0.0 ONAP Policy APEX PDP
+ local/policy-api 12.0.0 ONAP Policy Design API
+ local/policy-clamp-ac-a1pms-ppnt 12.0.0 ONAP Policy Clamp A1PMS Participant
+ local/policy-clamp-ac-http-ppnt 12.0.0 ONAP Policy Clamp Controlloop Http Participant
+ local/policy-clamp-ac-k8s-ppnt 12.0.0 ONAP Policy Clamp Controlloop K8s Participant
+ local/policy-clamp-ac-kserve-ppnt 12.0.0 ONAP Policy Clamp Kserve Participant
+ local/policy-clamp-ac-pf-ppnt 12.0.0 ONAP Policy Clamp Controlloop Policy Participant
+ local/policy-clamp-runtime-acm 12.0.0 ONAP Policy Clamp Controlloop Runtime
+ local/policy-distribution 12.0.0 ONAP Policy Distribution
+ local/policy-drools-pdp 12.0.0 ONAP Drools Policy Engine (PDP-D)
+ local/policy-pap 12.0.0 ONAP Policy Administration (PAP)
+ local/policy-xacml-pdp 12.0.0 ONAP Policy XACML PDP (PDP-X)
+
+.. note::
+ Only the policy/acm charts are shown above - there will be many others.
+
+Strimzi Kafka and Cert Manager Install
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Install Cert Manager
+
+.. code-block:: bash
+
+ kubectl apply -f https://github.com/jetstack/cert-manager/releases/download/v1.2.0/cert-manager.yaml
+
+Currently, the following policy/acm components use Strimzi Kafka by default:
+
+* policy-ppnt
+* k8s-ppnt
+* http-ppnt
+* a1Policy-mgmt-ppnt
+* kserve-ppnt
+* acm runtime
+
+There is a future plan to move all components to Strimzi Kafka. However, in the meantime, our deployments require both DMAAP message-router and Strimzi Kafka
+|
+Install Strimzi Kafka Operator
+
+.. code-block:: bash
+
+ helm repo add strimzi https://strimzi.io/charts/
+ helm install strimzi-kafka-operator strimzi/strimzi-kafka-operator --namespace strimzi-system --version 0.32.0 --set watchAnyNamespace=true --create-namespace
+
+Once these are installed and running, we can move on to the installation of the policy and related helm charts
+
+Policy and Related Helm Chart Install
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+At this stage, we have all the required charts that we need for either Policy Framework or ACM installation. The command to deploy the charts is below
+
+.. code-block:: bash
+
+ helm deploy dev local/onap --namespace onap -f ~/override.yaml --create-namespace
+
+In the above **helm deploy** command we provide an override file called **override.yaml**. In this file, we can turn on/off different parts of the onap installation. we have provided 2 different override files below in the collapsable code. One is for just the policy components and requirements. One is for the ACM components and requirements. These are provided just as examples - you can adjust any way you see fit.
+
+.. collapse:: Policy Chart Override
+
+ .. code-block:: yaml
+
+ global:
+ repository: nexus3.onap.org:10001
+ pullPolicy: IfNotPresent
+ masterPassword: password
+ serviceMesh:
+ enabled: false
+ cmpv2Enabled: false
+ addTestingComponents: false
+ robot:
+ enabled: false
+ so:
+ enabled: false
+ cassandra:
+ enabled: false
+ mariadb-galera:
+ enabled: true
+ replicaCount: 1
+ appc:
+ enabled: false
+ sdnc:
+ enabled: false
+ replicaCount: 1
+ config:
+ enableClustering: false
+ aaf:
+ enabled: false
+ aai:
+ enabled: false
+ clamp:
+ enabled: false
+ cli:
+ enabled: false
+ cds:
+ enabled: false
+ consul:
+ enabled: false
+ contrib:
+ enabled: false
+ awx:
+ enabled: false
+ netbox:
+ enabled: false
+ dcaegen2:
+ enabled: false
+ pnda:
+ enabled: false
+ dmaap:
+ enabled: true
+ message-router:
+ enabled: true
+ dmaap-bc:
+ enabled: false
+ dmaap-dr-prov:
+ enabled: false
+ dmaap-dr-node:
+ enabled: false
+ dmaap-strimzi:
+ enabled: false
+ esr:
+ enabled: false
+ log:
+ enabled: false
+ sniro-emulator:
+ enabled: false
+ oof:
+ enabled: false
+ msb:
+ enabled: false
+ multicloud:
+ enabled: false
+ nbi:
+ enabled: false
+ pomba:
+ enabled: false
+ portal:
+ enabled: false
+ platform:
+ enabled: false
+ sdc:
+ enabled: false
+ uui:
+ enabled: false
+ vfc:
+ enabled: false
+ vid:
+ enabled: false
+ modeling:
+ enabled: false
+ cps:
+ enabled: false
+ vnfsdk:
+ enabled: false
+ vvp:
+ enabled: false
+ strimzi:
+ enabled: true
+ replicaCount: 1
+ persistence:
+ kafka:
+ size: 1Gi
+ zookeeper:
+ size: 256Mi
+ strimzi-kafka-bridge:
+ enabled: false
+ policy:
+ enabled: true
+ policy-clamp-ac-a1pms-ppnt:
+ enabled: false
+ policy-clamp-ac-k8s-ppnt:
+ enabled: false
+ policy-clamp-ac-http-ppnt:
+ enabled: false
+ policy-clamp-ac-pf-ppnt:
+ enabled: false
+ policy-clamp-runtime-acm:
+ enabled: false
+ policy-gui:
+ enabled: false
+ policy-apex-pdp:
+ enabled: true
+ policy-nexus:
+ enabled: false
+ policy-api:
+ enabled: true
+ policy-pap:
+ enabled: true
+ policy-xacml-pdp:
+ enabled: true
+ policy-drools-pdp:
+ enabled: true
+ policy-distribution:
+ enabled: true
+
+.. collapse:: ACM Chart Override
+
+ .. code-block:: yaml
+
+ global:
+ repository: nexus3.onap.org:10001
+ pullPolicy: IfNotPresent
+ masterPassword: password
+ serviceMesh:
+ enabled: false
+ cmpv2Enabled: false
+ addTestingComponents: false
+ robot:
+ enabled: false
+ so:
+ enabled: false
+ cassandra:
+ enabled: false
+ mariadb-galera:
+ enabled: true
+ replicaCount: 1
+ appc:
+ enabled: false
+ sdnc:
+ enabled: false
+ replicaCount: 1
+ config:
+ enableClustering: false
+ aaf:
+ enabled: false
+ aai:
+ enabled: false
+ clamp:
+ enabled: false
+ cli:
+ enabled: false
+ cds:
+ enabled: false
+ consul:
+ enabled: false
+ contrib:
+ enabled: false
+ awx:
+ enabled: false
+ netbox:
+ enabled: false
+ dcaegen2:
+ enabled: false
+ pnda:
+ enabled: false
+ dmaap:
+ enabled: true
+ message-router:
+ enabled: true
+ dmaap-bc:
+ enabled: false
+ dmaap-dr-prov:
+ enabled: false
+ dmaap-dr-node:
+ enabled: false
+ dmaap-strimzi:
+ enabled: false
+ esr:
+ enabled: false
+ log:
+ enabled: false
+ sniro-emulator:
+ enabled: false
+ oof:
+ enabled: false
+ msb:
+ enabled: false
+ multicloud:
+ enabled: false
+ nbi:
+ enabled: false
+ pomba:
+ enabled: false
+ portal:
+ enabled: false
+ platform:
+ enabled: false
+ sdc:
+ enabled: false
+ uui:
+ enabled: false
+ vfc:
+ enabled: false
+ vid:
+ enabled: false
+ modeling:
+ enabled: false
+ cps:
+ enabled: false
+ vnfsdk:
+ enabled: false
+ vvp:
+ enabled: false
+ strimzi:
+ enabled: true
+ replicaCount: 1
+ persistence:
+ kafka:
+ size: 1Gi
+ zookeeper:
+ size: 256Mi
+ strimzi-kafka-bridge:
+ enabled: false
+ policy:
+ enabled: true
+ policy-clamp-ac-a1pms-ppnt:
+ enabled: true
+ policy-clamp-ac-k8s-ppnt:
+ enabled: true
+ policy-clamp-ac-http-ppnt:
+ enabled: true
+ policy-clamp-ac-pf-ppnt:
+ enabled: true
+ policy-clamp-runtime-acm:
+ enabled: true
+ policy-gui:
+ enabled: false
+ policy-apex-pdp:
+ enabled: false
+ policy-nexus:
+ enabled: false
+ policy-api:
+ enabled: true
+ policy-pap:
+ enabled: true
+ policy-xacml-pdp:
+ enabled: false
+ policy-drools-pdp:
+ enabled: false
+ policy-distribution:
+ enabled: false
+
+|
+
+Policy/ACM Pods
+***************
+To get a listing of the Policy or ACM Pods, run the following command:
.. code-block:: bash
@@ -34,8 +410,8 @@ To get a listing of the Policy Pods, run the following command:
To get a listing of the Policy services, run this command:
kubectl get svc -n onap | grep policy
-Accessing Policy Containers
-***************************
+Accessing Policy/ACM Containers
+*******************************
Accessing the policy docker containers is the same as for any kubernetes container. Here is an example:
.. code-block:: bash
@@ -44,8 +420,8 @@ Accessing the policy docker containers is the same as for any kubernetes contain
.. _install-upgrade-policy-label:
-Installing or Upgrading Policy
-******************************
+Installing or Upgrading Policy/ACM
+**********************************
The assumption is you have cloned the charts from the OOM repository into a local directory.
**Step 1** Go into local copy of OOM charts
@@ -61,13 +437,13 @@ For more information on how to change the ``db-migrator`` setup please see
.. code-block:: bash
- make policy
- make SKIP_LINT=TRUE onap
+ make policy -j$(nproc)
+ make SKIP_LINT=TRUE onap -j$(nproc)
.. note::
- SKIP_LINT is only to reduce the "make" time
+ SKIP_LINT is only to reduce the "make" time. **-j** allows the use of multiple threads.
-**Step 3** Undeploy Policy
+**Step 3** Undeploy Policy/ACM
After undeploying policy, loop on monitoring the policy pods until they go away.
.. code-block:: bash
@@ -128,47 +504,6 @@ For security reasons, the ports for the policy containers are configured as Clus
kubectl -n onap expose service policy-api --port=7171 --target-port=6969 --name=api-public --type=NodePort
-Overriding certificate stores
-*****************************
-Policy components package default key and trust stores that support https based communication with other
-AAF-enabled ONAP components. Each store can be overridden at installation.
-
-To override a default keystore, the new certificate store (policy-keystore) file should be placed at the
-appropriate helm chart locations below:
-
-* oom/kubernetes/policy/charts/drools/resources/secrets/policy-keystore drools pdp keystore override.
-* oom/kubernetes/policy/charts/policy-apex-pdp/resources/config/policy-keystore apex pdp keystore override.
-* oom/kubernetes/policy/charts/policy-api/resources/config/policy-keystore api keystore override.
-* oom/kubernetes/policy/charts/policy-distribution/resources/config/policy-keystore distribution keystore override.
-* oom/kubernetes/policy/charts/policy-pap/resources/config/policy-keystore pap keystore override.
-* oom/kubernetes/policy/charts/policy-xacml-pdp/resources/config/policy-keystore xacml pdp keystore override.
-
-In the event that the truststore (policy-truststore) needs to be overriden as well, place it at the appropriate
-location below:
-
-* oom/kubernetes/policy/charts/drools/resources/configmaps/policy-truststore drools pdp truststore override.
-* oom/kubernetes/policy/charts/policy-apex-pdp/resources/config/policy-truststore apex pdp truststore override.
-* oom/kubernetes/policy/charts/policy-api/resources/config/policy-truststore api truststore override.
-* oom/kubernetes/policy/charts/policy-distribution/resources/config/policy-truststore distribution truststore override.
-* oom/kubernetes/policy/charts/policy-pap/resources/config/policy-truststore pap truststore override.
-* oom/kubernetes/policy/charts/policy-xacml-pdp/resources/config/policy-truststore xacml pdp truststore override.
-
-When the keystore passwords are changed, the corresponding component configuration ([1]_) should also change:
-
-* oom/kubernetes/policy/charts/drools/values.yaml
-* oom/kubernetes/policy-apex-pdp/resources/config/config.json
-* oom/kubernetes/policy-distribution/resources/config/config.json
-
-This procedure is applicable to an installation that requires either AAF or non-AAF derived certificates.
-The reader is refered to the AAF documentation when new AAF-compliant keystores are desired:
-
-* `AAF automated configuration and Certificates <https://wiki.onap.org/display/DW/Application+Authorization+Framework+%28AAF%29+Documentation>`_.
-* `AAF Certificate Management for Dummies <https://wiki.onap.org/display/DW/AAF+Certificate+Management+for+Dummies>`_.
-* `Instructional Videos <https://wiki.onap.org/display/DW/Instructional+Videos>`_.
-
-After these changes, follow the procedures in the :ref:`install-upgrade-policy-label` section to make usage of
-the new stores effective.
-
Additional PDP-D Customizations
*******************************
@@ -203,10 +538,6 @@ Custom configuration supportes these types of files:
Examples
^^^^^^^^
-
-To *disable AAF*, simply override the "aaf.enabled" value when deploying the helm chart
-(see the OOM installation instructions mentioned above).
-
To *override the PDP-D keystore or trustore*, add a suitable replacement(s) under
"drools/resources/secrets". Modify the drools chart values.yaml with
new credentials, and follow the procedures described at
@@ -226,7 +557,3 @@ oom/kubernetes/policy/charts/drools/resources/configmaps/:
#!/bin/bash
sed -i "s/^dmaap/noop/g" $POLICY_HOME/config/*.properties
-
-.. rubric:: Footnotes
-
-.. [1] There is a limitation that store passwords are not configurable for policy-api, policy-pap, and policy-xacml-pdp.
diff --git a/docs/requirements-docs.txt b/docs/requirements-docs.txt
index 71df2ab0..bd970891 100644
--- a/docs/requirements-docs.txt
+++ b/docs/requirements-docs.txt
@@ -5,3 +5,4 @@ sphinxcontrib-seqdiag # BSD
sphinxcontrib-swaggerdoc
sphinxcontrib-spelling
sphinxcontrib-plantuml
+sphinx_toolbox