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 cbw-on-premise
-
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 cbw-on-premise 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 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.
-
Install Cyberwatch:
For Debian-based distributions:
sudo install -m 0755 -d /usr/share/keyrings curl https://dl.cyberwatch.fr/apt/APT-CYBERWATCH-GPG-KEY | 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] 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 yum-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