Update the base of the orchestrator MicroK8s
This page describes the procedure to update Cyberwatch’s administration files with a MicroK8s deployment.
Update MicroK8s
- Update MicroK8s with snap:
sudo snap refresh microk8s --channel=latest/stable
Update the orchestrator base
Before any other operation, update the Cyberwatch application with the standard procedure.
Verify that packet
cyberwatch
is installed:sudo cyberwatch version
If the command does not exist, migrate orchestrator base to 5.X.
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.
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
Reconfigure Cyberwatch:
The following command accepts
--master
,--satellite
,--no-db
and--offline
flags. Specify required flags depending on your situation.sudo cyberwatch configure
Verify that the instance work correctly from the web interface.
Archive the folder
cbw-on-premise
:sudo tar cvf cbw-on-premise-v2.tar /home/cyberwatch/cbw-on-premise
Move the archive out of folder
/home/cyberwatch
.Delete user
cyberwatch
and all data from/home/cyberwatch
:sudo userdel cyberwatch -r