Upgrade Linux infrastructure
Run the commands on the VM where the Linux chaos infrastructure is installed. The path differs between SaaS and self-managed platform (SMP).
SaaS
-
Fetch
INFRA_IDandACCESS_KEYfrom the existing config:INFRA_ID=$(sed -n 's/^infraID: "\(.*\)"/\1/p' /etc/linux-chaos-infrastructure/config.yaml)ACCESS_KEY=$(sed -n 's/^accessKey: "\(.*\)"/\1/p' /etc/linux-chaos-infrastructure/config.yaml) -
Uninstall the current version:
/etc/linux-chaos-infrastructure/uninstall.sh -
Install the new version. Get the binary URL from the Linux infrastructure page in the Harness UI, then run:
sudo https://app.harness.io/public/shared/tools/chaos/linux/1.50.0/install.sh \| bash /dev/stdin \--infra-id "$INFRA_ID" \--access-key "$ACCESS_KEY" \--server-url https://<YOUR_IP>/chaos/lserver/apiReplace
1.50.0with the target version and<YOUR_IP>with your cluster address.
SMP
-
Raise a Harness support ticket to get the
offline-linux-installertarball. -
Copy and extract the tarball on the target VM, then
cdinto the extracted directory. -
Fetch
INFRA_IDandACCESS_KEYfrom the existing config:INFRA_ID=$(sed -n 's/^infraID: "\(.*\)"/\1/p' /etc/linux-chaos-infrastructure/config.yaml)ACCESS_KEY=$(sed -n 's/^accessKey: "\(.*\)"/\1/p' /etc/linux-chaos-infrastructure/config.yaml) -
Uninstall the current version with
/etc/linux-chaos-infrastructure/uninstall.sh. -
Install the new version:
sudo ./install.sh \--infra-id "$INFRA_ID" \--access-key "$ACCESS_KEY" \--server-url https://<YOUR_IP>/chaos/lserver/api
This same command works in air-gapped environments once the installer is on the VM.