Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Instruction of How to set up kubctl command can be found in the resource management tab.


3. Follow the instructions of OOM to deploy ONAP

Deploy ONAP on a Kubernetes cluster launched by CCE is very similar to deploy ONAP on Kubernetes with Rancher

Since CCE node doesn't support Ubuntu for now, scripts to build NFS will be slightly different.

master_nfs.sh

Code Block
#!/bin/bash

usage () {
  echo "Usage:"
  echo "   ./$(basename $0) node1_ip node2_ip ... nodeN_ip"
  exit 1
}

if [ "$#" -lt 1 ]; then
  echo "Missing NFS slave nodes"
  usage
fi

#Install NFS kernel
sudo yum update
sudo yum install -y nfs-utils
sudo systemctl enable nfs-server

#Create /dockerdata-nfs and set permissions
sudo mkdir -p /dockerdata-nfs
sudo chmod 777 -R /dockerdata-nfs
sudo chown nobody:nobody /dockerdata-nfs/

#Update the /etc/exports
NFS_EXP=""
for i in $@; do
  NFS_EXP+="$i(rw,sync,no_root_squash,no_subtree_check) "
done
echo "/dockerdata-nfs "$NFS_EXP | sudo tee -a /etc/exports

#Restart the NFS service
sudo exportfs -a
sudo systemctl restart nfs-server

slave_nfs.sh

Code Block
#!/bin/bash

usage () {
  echo "Usage:"
  echo "   ./$(basename $0) nfs_master_ip"
  exit 1
}

if [ "$#" -ne 1 ]; then
  echo "Missing NFS mater node"
  usage
fi

MASTER_IP=$1

#Install NFS common
sudo yum update
sudo yum install -y nfs-utils
sudo systemctl enable nfs-client

#Create NFS directory
sudo mkdir -p /dockerdata-nfs

#Mount the remote NFS directory to the local one
sudo mount $MASTER_IP:/dockerdata-nfs /dockerdata-nfs/
echo "$MASTER_IP:/dockerdata-nfs /dockerdata-nfs  nfs auto,nofail,noatime,nolock,intr,tcp,actimeo=1800 0 0" | sudo tee -a /etc/fstab

Other than that, you can refer to the OOM deploy guide.