Manually installing and configuring Kubernetes cluster

Prerequisites
  • Contact HPE Sales and Support team to ascertain the NPS toolkit (nps2-*.tar.gz) and VIM automation (Cloud-*.tar.gz) tar balls for deployment.

  • To perform this procedure, you must be logged in as the root user.

Procedure
  1. Ensure that the Git package is installed in the system. To install Git, if it is not installed, execute the following command:
    yum install git -y
  2. If you use proxy servers for the Internet connectivity, ensure that the following entries are available in the /etc/profile file for the Kubernetes container-network-range:
    export http_proxy=<IP address of the proxy server and port number>
    export https_proxy=<IP address of the proxy server and port number>
    export no_proxy=<IP address of NPS host>,localhost,
    XXX.X.X.X,XX.XX.X.X/XX,XX.XX.X.X/XX
  3. Navigate to the directory where the NPS toolkit artifacts were downloaded. For example, /home or /root. In the NPS toolkit artifacts directory, navigate to the utils folder. For example, /home/nps2/install/utils/.
  4. To download and install Kubernetes, and to create the Kubernetes cluster on the NPS toolkit Controller, execute the following command:
    python nps_kube_installer.py
    NOTE:
    If you use proxy servers for the Internet connectivity, append the URL of the proxy server to the previous command. For example:
    python nps_kube_installer.py <URL of the proxy server>
  5. To verify the status of Kubernetes, execute the following command:
    kubectl get nodes

    The status of the node and other details is displayed as shown in following example:



  6. To verify the status of the pods, execute the following command:
    kubectl get pods --all-namespaces

    The statuses of the pods and other details are displayed as shown in following example:



    NOTE:

    After the successful installation of Kubernetes, ensure that at least 50GB of free space is available in the NPS toolkit host.