upload-deploy-chaosmesh-

Signed-off-by: Mila Wu <wumila1996@gmail.com>
This commit is contained in:
Mila Wu 2021-12-27 18:34:37 +08:00
parent 42548faf31
commit 999c651c6a
15 changed files with 13 additions and 13 deletions

View File

@ -8,7 +8,7 @@ linkTitle: "Deploy Chaos Mesh on KubeSphere"
[Chaos Mesh](https://github.com/chaos-mesh/chaos-mesh) is a cloud-native Chaos Engineering platform that orchestrates chaos in Kubernetes environments. With Chaos Mesh, you can test your system's resilience and robustness on Kubernetes by injecting various types of faults into Pods, network, file system, and even the kernel.
![Chaos Mesh architecture](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-mesh-architecture-v2.png)
![Chaos Mesh architecture](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-mesh-architecture-v2.png)
## Enable App Store on KubeSphere
@ -22,34 +22,34 @@ linkTitle: "Deploy Chaos Mesh on KubeSphere"
1. Login KubeSphere as `project-regular`, search for **chaos-mesh** in the **App Store**, and click on the search result to enter the app.
![Chaos Mesh app](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-mesh-app.png)
![Chaos Mesh app](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-mesh-app.png)
2. In the **App Information** page, click **Install** on the upper right corner.
![Install Chaos Mesh](/images/docs/appstore/external-apps/deploy-chaos-mesh/install-chaos-mesh.png)
![Install Chaos Mesh](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/install-chaos-mesh.png)
3. In the **App Settings** page, set the application **Name,** **Location** (as your Namespace), and **App Version**, and then click **Next** on the upper right corner.
![Chaos Mesh basic information](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-mesh-basic-info.png)
![Chaos Mesh basic information](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-mesh-basic-info.png)
4. Configure the `values.yaml` file as needed, or click **Install** to use the default configuration.
![Chaos Mesh configurations](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-mesh-config.png)
![Chaos Mesh configurations](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-mesh-config.png)
5. Wait for the deployment to be finished. Upon completion, Chaos Mesh will be shown as **Running** in KubeSphere.
![Chaos Mesh deployed](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-mesh-deployed.png)
![Chaos Mesh deployed](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-mesh-deployed.png)
### Step 2: Visit Chaos Dashboard
1. In the **Resource Status** page, copy the **NodePort **of `chaos-dashboard`.
![Chaos Mesh NodePort](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-mesh-nodeport.png)
![Chaos Mesh NodePort](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-mesh-nodeport.png)
2. Access the Chaos Dashboard by entering `${NodeIP}:${NODEPORT}` in your browser. Refer to [Manage User Permissions](https://chaos-mesh.org/docs/manage-user-permissions/) to generate a Token and log into Chaos Dashboard.
![Login to Chaos Dashboard](/images/docs/appstore/external-apps/deploy-chaos-mesh/login-to-dashboard.png)
![Login to Chaos Dashboard](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/login-to-dashboard.png)
### Step 3: Create a chaos experiment
@ -63,20 +63,20 @@ curl -sSL https://mirrors.chaos-mesh.org/latest/web-show/deploy.sh | bash
1. From your web browser, visit ${NodeIP}:8081 to access the **Web Show** application.
![Chaos Mesh web show app](/images/docs/appstore/external-apps/deploy-chaos-mesh/web-show-app.png)
![Chaos Mesh web show app](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/web-show-app.png)
2. Log in to Chaos Dashboard to create a chaos experiment. To observe the effect of network latency on the application, we set the **Target **as "Network Attack" to simulate a network delay scenario.
![Chaos Dashboard](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-dashboard-networkchaos.png)
![Chaos Dashboard](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-dashboard-networkchaos.png)
The **Scope** of the experiment is set to `app: web-show`.
![Chaos Experiment scope](/images/docs/appstore/external-apps/deploy-chaos-mesh/chaos-experiment-scope.png)
![Chaos Experiment scope](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/chaos-experiment-scope.png)
3. Start the chaos experiment by submitting it.
![Submit Chaos Experiment](/images/docs/appstore/external-apps/deploy-chaos-mesh/start-chaos-experiment.png)
![Submit Chaos Experiment](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/start-chaos-experiment.png)
Now, you should be able to visit **Web Show** to observe experiment results:
![Chaos Experiment result](/images/docs/appstore/external-apps/deploy-chaos-mesh/experiment-result.png)
![Chaos Experiment result](/images/docs/appstore/built-in-apps/deploy-chaos-mesh/experiment-result.png)