redhat-nfvpe / onap-on-openshift

Apache License 2.0
9 stars 6 forks source link

ONAP on Openshift

About

This repo contains scripts to make it very easy to deploy ONAP on an OpenShift cluster. OpenShift is an enterprise-grade Kubernetes distribution with security hardening, pre-integrated application lifecycle management functionality, and DevOps tooling.

Deployment consists of two simple steps:

  1. Deploy an OpenShift cluster.
    • "all-in-one" on a single baremetal or virtual machine. Choose this option for test-driving of or development on a subset of ONAP components (whole ONAP is likely too heavy-weight for a single node).
    • "multi-node" (coming soon) on a public or private cloud. Choose this option for a full ONAP deployment on a production-like OpenShift environment.
  2. Deploy ONAP.

1. Deploy an OpenShift Cluster

All-in-one Cluster

Prerequisites:

To deploy Openshift:M

git clone https://github.com/redhat-nfvpe/onap-on-openshift.git
cd onap-on-OpenShift
./deploy_openshift_aio.sh

To undeploy OpenShift:

./undeploy_openshift_aio.sh

Notes:

That script takes care of the host configuration (package dependencies, firewall rules, etc.), installs the oc client tool, deploys an OpenShift Origin v3.9 cluster without pods-per-core limit, and installs matching kubectl and helm clients.

Multi-node Cluster

Coming soon.

2. Deploy ONAP

Prerequisites:

To deploy ONAP:

./deploy_onap.sh

To undeploy ONAP (note this may take several 10mins!):

./undeploy_onap.sh

Notes:

This script reconfigures OpenShift's security controls to allow ONAP's unsecure use of hostdirs and privileged container image users. It then clones the ONAP Operations Manager (OOM) repo and automates the steps described in the User Guide to configure and deploy ONAP.

To modify which ONAP services are deployed, edit the file configs/onap-config.yaml to enable or disable ONAP services before running deploy_onap.sh.