Upgrade Litmus ChaosCenter to Latest Version
#
Upgrade ChaosCenterTo upgrade Litmus ChaosCenter from 2.3.0 to 2.4.0, you can follow these steps:
Note: This step is not required if using Helm, Helm upgrade should work.
Upgrade the control plane (ChaosCenter) To upgrade ChaosCenter, you can re-apply the manifest using the kubectl.
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/mkdocs/docs/2.4.0/litmus-2.4.0.yaml
#
Upgrade Mongodb DB SchemaNote: This step is not required if using Helm, Helm upgrade should work.
To upgrade the DB schema, deploy the upgrade-agent in your k8s cluster where ChaosCenter is installed. This manifest will create a Job, which will upgrade the mongoDB schema.
kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/master/litmus-portal/upgrade-agents/control-plane/upgrade-agent.yaml
#
Upgrade ChaosAgentTo upgrade your ChaosAgent, you can follow these steps:
- If an upgrade is available, you will get an option to upgrade your agent in the ChaosCenter. Upon clicking on the upgrade option, a modal will pop up providing you the litmusctl command which you can execute and your ChaosAgent will be upgraded.
Alternatively you can run the following command using litmusctl in the cluster containing the agent by providing <CLUSTER_ID>
and <PROJECT_ID>
.
litmusctl upgrade agent --cluster-id="<CLUSTER_ID>" --project-id="<PROJECT_ID>"
Note: v0.7.0 of litmusctl is required.