Manually installing and configuring Kubernetes cluster

Prerequisites
  • Download the NPS artifacts from the FTP site or the respective GitHub repository.

    For more information about downloading the artifacts from the FTP site or the GitHub repository, see HPE Telco Blueprint Release Notes available at Hewlett Packard Enterprise Information Library.

  • 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, run 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 artifacts were downloaded. For example, /home or /root. In the NPS 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 Controller, run 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, run 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, run 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 host.