Steps described in this page are run by "ubuntu", a non-root user.
ONAP deployment in Kubernetes is modeled in the oom project as a one-to-one set of service to pod sets (one pod per docker container).
The following table illustrate the steps that much run or can be skipped
on the each of the Kubernetes cluster node.
Steps Description | Kubernetes Node | |
---|---|---|
First | any other | |
Install Docker | ||
Configure Kubernetes Cluster | ||
Install kubectl | ||
Install Helm (expect OOM project will be mounted on the same node) |
Install Docker
# | Purpose | Command and Example |
---|---|---|
1 | Install Docker 1.12 | |
2 | Enable docker command for ubuntu useras recommend from docker installation | sudo usermod -aG docker ubuntu logout log back in and validate docker command is usable by entering "docker" |
Configure Kubernetes Cluster
Set up Kubernetes cluster follow steps at Kubernetes Cluster by Rancher.
Install kubectl
kubectl is a command line interface for running commands against Kubernetes clusters.
Follow the steps below to install kubectrl:
# | Purpose | Command and Example |
---|---|---|
1 | Download kubectl on the server | curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.8.6/bin/linux/amd64/kubectl |
2 | Enable the kubectl command | chmod +x kubectl sudo mv kubectl /usr/local/bin/kubectl vi ~/.bashrc
source ~/.bashrc |
3 | Generate config from the Rancher UI |
|
4 | Create the kube config on the server | mkdir ~/.kube vi ~/.kube/config Paste the generated config from rancher UI (from last step) to this file, then save the file. |
5 | Validate the kube config | kubectl cluster-info |
6 | Validate the nodes added | kubectl get nodes |
Install Helm
Helm is used by OOM for package and configuration management. Hence, we are installing Helm (use 2.3.0 not current 2.6.0) on the server where we have mounted the OOM project.
Follow the steps below to download and enable Helm on the server:
# | Purpose | Command and Example |
---|---|---|
1 | Download the Helm tar file | |
2 | Untar the Helm tar file | tar -zxvf helm-v2.3.0-linux-amd64.tar.gz |
3 | Enable the Helm command | sudo mv linux-amd64/helm /usr/local/bin/helm |
Tip of viewing helm command menu |