Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Update the base of the orchestrator MicroK8s

This page describes the procedure to update Cyberwatch’s administration files with a MicroK8s deployment.

Update MicroK8s

  1. Update MicroK8s with snap :
sudo snap refresh microk8s --channel=latest/stable

Update cbw-on-premise

  1. Before any other operation, update the Cyberwatch application with the standard procedure.

  2. Verify that packet cyberwatch is installed:

    sudo cyberwatch version

    If the command does not exist, migrate cbw-on-premise to 5.X.

  3. Else, update the package

    For Debian-based distributions:

    sudo apt update
    sudo apt install cyberwatch

    For Red Hat based distributions :

    sudo dnf install cyberwatch

Migrate from cbw-on-premise v2.X to cbw-on-premise v5.X

Starting from cbw-on-premise version 5.0, Cyberwatch is installed as a packet.

  1. Install Cyberwatch:

    For Debian-based distributions:

       sudo install -m 0755 -d /usr/share/keyrings
       curl | sudo gpg --dearmor -o /usr/share/keyrings/cyberwatch.gpg
       sudo chmod a+r /usr/share/keyrings/cyberwatch.gpg
       echo "deb [signed-by=/usr/share/keyrings/cyberwatch.gpg] any main" | sudo tee /etc/apt/sources.list.d/cyberwatch.list > /dev/null
       sudo apt update
       sudo apt install cyberwatch

    For Red Hat based distributions:

       sudo yum-config-manager --add-repo
       sudo dnf install cyberwatch
  2. Reconfigure Cyberwatch:

    The following command accepts --master, --satellite, --no-db and --offline flags. Specify required flags depending on your situation.

    sudo cyberwatch configure
  3. Verify that the instance work correctly from the web interface.

  4. Archive the foldercbw-on-premise:

    sudo tar cvf cbw-on-premise-v2.tar /home/cyberwatch/cbw-on-premise
  5. Move the archive out of folder /home/cyberwatch.

  6. Delete user cyberwatch and all data from /home/cyberwatch:

    sudo userdel cyberwatch -r