Aggiornamento del deployment
Per aggiornare il tuo deployment di OpenReplay all’ultima versione è necessario aggiornare sia il backend (istanza) sia il tracker.
Aggiornare il backend (installazione standard)
Section titled Aggiornare il backend (installazione standard)- Scarica la CLI più recente
# Download the latest CLI
sudo wget https://raw.githubusercontent.com/openreplay/openreplay/main/scripts/helmcharts/openreplay-cli -O /bin/openreplay
sudo chmod +x /bin/openreplay
export PATH=/var/lib/openreplay:$PATH
- Controlla la versione del tuo cluster Kubernetes e aggiornalo se è precedente alla
1.31(obbligatorio)
# Check Kubernetes version
kubectl version --short 2>/dev/null | grep -i server | awk '{print $NF}'
# Update Kubernetes
k3s-killall.sh
curl -sL https://get.k3s.io | sudo K3S_KUBECONFIG_MODE="644" INSTALL_K3S_VERSION='v1.31.5+k3s1' INSTALL_K3S_EXEC="--disable=traefik" sh -
# Restart Kubernetes cluster
sudo systemctl restart k3s.service
# Update Kubernetes deprecated apis
helm plugin install https://github.com/helm/helm-mapkubeapis
helm mapkubeapis -n app openreplay
- Aggiorna OpenReplay
RELEASE_UPGRADE=1 openreplay --upgrade
Nota: il file di configurazione aggiornato di OpenReplay verrà salvato in
/var/lib/openreplay/vars.yaml.
Aggiornare il backend (solo Docker)
Section titled Aggiornare il backend (solo Docker)git clone https://github.com/openreplay/openreplay --depth 1
cd openreplay/scripts/docker-compose
bash upgrade.sh /path/to/old/common.env
eg: bash upgrade.sh ~/openreplay-docker-compose/common.env
Nota: il file di configurazione aggiornato di OpenReplay verrà salvato in
common.envinsieme al file docker-compose.
Compatibilità del tracker
Section titled Compatibilità del trackerAssicurati che il tuo tracker (e il plugin tracker-assist, se utilizzi il plugin Assist) sia compatibile con la nuova versione del backend consultando la tabella di compatibilità qui sotto:
| Versione del backend | Versione del tracker | Versione di Assist |
|---|---|---|
| 1.28.0 | 19.x.x | 11.x.x |
| 1.27.0 | 18.x.x | 11.x.x |
| 1.26.0 | 17.2.x | 11.x.x |
| 1.25.0 | 17.2.x | 11.x.x |
| 1.24.0 | 17.1.x | 11.x.x |
| 1.23.0 | 17.x.x | 11.x.x |
| 1.22.0 | 16.x.x | 11.x.x |
| 1.21.0 | 15.x.x | 10.x.x |
| 1.20.0 | 14.x.x | 10.x.x |
| 1.19.0 | 14.x.x | 9.x.x |
| 1.18.0 | 13.x.x | 9.x.x |
| 1.17.0 | 12.x.x | 8.x.x |
| 1.4.0 | 3.4.17 | 3.4.16 |
| 1.3.6 | 3.4.16 | 3.4.15 |
| 1.3.5 | 3.4.0 | 3.4.13 |
| 1.3.0 | 3.2.1 | 3.4.12 |
| 1.2.0 | 3.1.0 | N/A |
| 1.1.0 | 3.0.3 | N/A |
Hai domande?
Section titled Hai domande?Se riscontri qualche problema durante il processo di aggiornamento, scrivici su Slack e ricevi aiuto dalla nostra community.