Usually multi-node Kubernetes installation are suggested for production and larger trials.
For simplicity, CORD provides some easy-to-use automated scripts to quickly setup Kubespray on an arbitrary number of target machines in few commands.
This is meant only for lab trials and demo use.
At the end of the procedure, Kubespray should be installed.
On the operator machine
git clone https://gerrit.opencord.org/automation-tools
Inside, you will find a folder called kubespray-installer From now on the guide will assume you're running commands in this folder.
The main script (setup.sh) provides an helper with instructions. To see it, run ./setup.sh --help.
The two main functions are:
In the following example we assume that
Remote machines have the following IP addresses:
The deployment/POD has been given the arbitrary name onf
The installation procedure goes through the following steps (right in this order):
To run the installation script, type
./setup.sh -i onf 10.90.0.101 10.90.0.102 10.90.0.103
At the beginning of the installation you'll be asked to insert your password multiple times.
At the end of the procedure, Kubespray should be installed and running on the remote machines.
The configuration file to access the POD will be saved in the subfolder configs/onf.conf.
Want to deploy another POD without affecting your existing deployment?
Runt the following:
./setup.sh -i my_other_deployment 192.168.0.1 192.168.0.2 192.168.0.3
Your onf.conf configuration will be always there, and your new my_other_deployment.conf file as well!
Kubectl and helm (look here for more details) need to be pointed to a specific cluster, before being used. This is done through standard KUBECONFIG files.
The script also helps you to automatically export the path pointing to an existing KUBECONFIG file, previously generated during the installation.
To do that -for example against the onf pod just deployed, simply type
source setup.sh -s onf
At this point, you can start to use kubectl and helm.
Are you done? You're ready to install kubectl and helm. Instructions here.