Upgrade K3s
This document outlines the steps to install and update K3s servers and how to deploy and backup Focus services.
Last updated
Was this helpful?
This document outlines the steps to install and update K3s servers and how to deploy and backup Focus services.
Last updated
Was this helpful?
Please refer to K3S installationfor the installation details.
Go to Rancher dashboard and wait for the new cluster to become Active:
Select the cluster name and go to Apps > Charts and install the GetVisibility Essentials Helm chart:
After Getvisibility Essentials make sure to Enable Elastic Search
4. Go to Apps > Charts and install the GetVisibility Monitoring Helm chart and install into Project: Default:
5. Go to the global menu Continuous Delivery > Clusters and click on Edit config for the cluster:
6. Add 2 labels product=Focus environment=prod and press Save.
Updates and custom settings are automatically applied to all Focus backend services as long as the cluster has access to the public internet and can connect to the management server.
In case there’s no internet connection or the management server is down, the cluster agent will keep trying to reach the management server until a connection can be established.
To upgrade K3s from an older version to a specific version you can run the following command:
Stop the old k3s binary (e.g. systemctl stop k3s) and start it again (e.g. systemctl start k3s). For more details please refer to the official documentation.
By default, certificates in K3s expire in 12 months. If the certificates are expired or have fewer than 90 days remaining before they expire, the certificates are rotated when K3s is restarted.
Find the IP of the server where Consul is running (in case you have a multi-node cluster):
Log into the server using SSH and execute the following command to take a snapshot of Consul:
Find the path where the snapshot has been save to:
Copy the snapshot file to a safe place.
Find the IP of the server where the PostgreSQL master is running (in case you have a multi-node cluster):
Log into the server using SSH and execute the following command to backup all databases:
Find the path where the backup has been save to:
Copy the backup file to a safe place.