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 the orchestrator base

  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 orchestrator base 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 the orchestrator base v2.X to v5.X

Starting from orchestrator base version 5.0, Cyberwatch is installed as a packet.

  1. Install Cyberwatch:

    For Debian-based distributions:

       sudo install -m 0755 -d /etc/apt/keyrings
       curl https://dl.cyberwatch.fr/apt/APT-CYBERWATCH-GPG-KEY | sudo gpg --dearmor -o /etc/apt/keyrings/cyberwatch.gpg
       sudo chmod a+r /etc/apt/keyrings/cyberwatch.gpg
       echo "deb [signed-by=/etc/apt/keyrings/cyberwatch.gpg] https://dl.cyberwatch.fr/apt 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 dnf config-manager --add-repo https://dl.cyberwatch.fr/rpm/cyberwatch.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
    

Back to top