Table of contents

Target

PrimeHub runs on Kubernetes, so you’ll need to install a container runtime to help manage and run your containers.

In this section, you will do the following.

  1. Install a container runtime on all physical and virtual systems.
  2. Ensure you have access to a container registry.
    1. Install Harbor if a private, self-hosted, registry if required.
  3. [For Air-gap Environment] Learn how to push PrimeHub images to your private container registry.

For single-node environment using Microk8s

You can skip this part and move on to configure your container registry. Microk8s ships with containerd as its container runtime.

For multi-node environment using RKE…etc

We recommend installing Docker, especially if you plan to use Harbor as a private container registry. However, containerd is also supported.

I. Install a container runtime

Method 1: Docker Engine

Docker provides a convenient script at get.docker.com to install Docker or you can use the following methods to install Docker for different Linux distros.

For Ubuntu 18.04 and higher

  1. Install required Linux packages

    sudo apt-get install ca-certificates curl gnupg lsb-release
    
  2. Create keyring folder

    sudo mkdir -p /etc/apt/keyrings
    
  3. Create gpg key for docker repository

    curl -fsSL <https://download.docker.com/linux/ubuntu/gpg> | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
    
  4. Add repository for docker

    sudo echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] <https://download.docker.com/linux/ubuntu> $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null