This repository contains a simple Bash script to upgrade Redis Data Integration (RDI) on a RHEL-based VM installation.
The script automates the process of upgrading RDI to a specified version.
It performs the following actions:
- Defines constants for RDI version, host, port, and password.
- Cleans up immutable Kubernetes Jobs that may block upgrades.
- Downloads and extracts the RDI installer.
- Executes the
upgrade.sh
script with proper arguments. - Validates the upgrade by checking the installed version.
- RHEL or compatible Linux distribution
sudo
privilegeskubectl
configured and connected to the RDI Kubernetes environment- Sufficient disk space for download and extraction
-
Edit the script to configure:
RDI_VERSION="1.12.3" RDI_PASSWORD="secret42" RDI_HOST="localhost" RDI_PORT="12000"
-
Run the script:
chmod +x upgrade-rdi.sh ./upgrade-rdi.sh
-
When prompted with:
You're about to reinstall RDI (1.12.3). Are you sure? [y/N]:
Type
y
and press Enter. -
Validate the upgrade:
redis-di --version
Expected output (example):
redis-di, version 1.12.3
- The script removes Jobs
rdi-operator-webhook-certgen
andrdi-operator-webhook-certpatch
to prevent immutable field errors during upgrade.
Este script automatiza o processo de upgrade do Redis Data Integration (RDI) para uma versão específica.
Ele executa as seguintes ações:
- Define constantes para a versão, host, porta e senha do RDI.
- Remove Jobs imutáveis do Kubernetes que podem bloquear o upgrade.
- Faz o download e extrai o instalador do RDI.
- Executa o script
upgrade.sh
com os argumentos necessários. - Valida o upgrade verificando a versão instalada.
- RHEL ou distribuição Linux compatível
- Privilégios
sudo
kubectl
configurado e conectado ao ambiente Kubernetes do RDI- Espaço em disco suficiente para download e extração
-
Edite o script para configurar:
RDI_VERSION="1.12.3" RDI_PASSWORD="secret42" RDI_HOST="localhost" RDI_PORT="12000"
-
Execute o script:
chmod +x upgrade-rdi.sh ./upgrade-rdi.sh
-
Quando solicitado com:
You're about to reinstall RDI (1.12.3). Are you sure? [y/N]:
Digite
y
e pressione Enter. -
Valide o upgrade:
redis-di --version
Saída esperada (exemplo):
redis-di, version 1.12.3
- O script remove os Jobs
rdi-operator-webhook-certgen
erdi-operator-webhook-certpatch
para evitar erros de campo imutável durante o upgrade.