diff --git a/website/docs/assets/disconnect-image.png b/website/docs/assets/disconnect-image.png new file mode 100644 index 0000000..b4286ba Binary files /dev/null and b/website/docs/assets/disconnect-image.png differ diff --git a/website/docs/user-guides/upgrade.md b/website/docs/user-guides/upgrade.md new file mode 100644 index 0000000..d194098 --- /dev/null +++ b/website/docs/user-guides/upgrade.md @@ -0,0 +1,33 @@ +--- +id: upgrade +title: Upgrade Litmus ChaosCenter to Latest Version +sidebar_label: Upgrade +--- + +--- + +## Upgrade ChaosCenter +To upgrade Litmus ChaosCenter from 2.0.0-Beta9 to 2.0.0, you can follow these steps: + +1. Disconnect the agent components + To disconnect agents, you can do it from the chaoscenter by clicking the `disconnect` button. With this, the subscriber deployment and agent-config will be removed from the agent cluster. + + + + +2. Upgrade the control plane (ChaosCenter) + To upgrade ChaosCenter, you can re-apply the manifest using the kubectl. + + ```bash + kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/2.0.0/docs/2.0.0/litmus-2.0.0.yaml + ``` + +2. Reinstall the agent components using litmusctl + >Note: While reinstallation, make sure to use the same agent name + + To reinstall the ChaosAgents, use [Litmusctl](../litmusctl/usage-non-interactive-mode.md) + +## Upgrade Mongodb DB Schema +> Note: This step is not required for upgrading 2.0.0-Beta9 to 2.0.0 + +To upgrade the DB schema, make sure to delete the PV before re-installing ChaosCenter. diff --git a/website/sidebars.js b/website/sidebars.js index c4af62b..9351c79 100644 --- a/website/sidebars.js +++ b/website/sidebars.js @@ -139,7 +139,8 @@ module.exports = { }, 'user-guides/gitops-configuration', 'user-guides/image-registry', - 'user-guides/uninstall-litmus' + 'user-guides/uninstall-litmus', + 'user-guides/upgrade' ] }, diff --git a/website/versioned_docs/version-2.0.0/assets/disconnect-image.png b/website/versioned_docs/version-2.0.0/assets/disconnect-image.png new file mode 100644 index 0000000..b4286ba Binary files /dev/null and b/website/versioned_docs/version-2.0.0/assets/disconnect-image.png differ diff --git a/website/versioned_docs/version-2.0.0/user-guides/upgrade.md b/website/versioned_docs/version-2.0.0/user-guides/upgrade.md new file mode 100644 index 0000000..d194098 --- /dev/null +++ b/website/versioned_docs/version-2.0.0/user-guides/upgrade.md @@ -0,0 +1,33 @@ +--- +id: upgrade +title: Upgrade Litmus ChaosCenter to Latest Version +sidebar_label: Upgrade +--- + +--- + +## Upgrade ChaosCenter +To upgrade Litmus ChaosCenter from 2.0.0-Beta9 to 2.0.0, you can follow these steps: + +1. Disconnect the agent components + To disconnect agents, you can do it from the chaoscenter by clicking the `disconnect` button. With this, the subscriber deployment and agent-config will be removed from the agent cluster. + + + + +2. Upgrade the control plane (ChaosCenter) + To upgrade ChaosCenter, you can re-apply the manifest using the kubectl. + + ```bash + kubectl apply -f https://raw.githubusercontent.com/litmuschaos/litmus/2.0.0/docs/2.0.0/litmus-2.0.0.yaml + ``` + +2. Reinstall the agent components using litmusctl + >Note: While reinstallation, make sure to use the same agent name + + To reinstall the ChaosAgents, use [Litmusctl](../litmusctl/usage-non-interactive-mode.md) + +## Upgrade Mongodb DB Schema +> Note: This step is not required for upgrading 2.0.0-Beta9 to 2.0.0 + +To upgrade the DB schema, make sure to delete the PV before re-installing ChaosCenter. diff --git a/website/versioned_sidebars/version-2.0.0-sidebars.json b/website/versioned_sidebars/version-2.0.0-sidebars.json index 4821a89..924342e 100644 --- a/website/versioned_sidebars/version-2.0.0-sidebars.json +++ b/website/versioned_sidebars/version-2.0.0-sidebars.json @@ -367,6 +367,10 @@ { "type": "doc", "id": "version-2.0.0/user-guides/uninstall-litmus" + }, + { + "type": "doc", + "id": "version-2.0.0/user-guides/upgrade" } ] },