Skip to content

Commit d25b7fc

Browse files
authored
chore: Refactors user guide pages (#270)
Signed-off-by: neelanjan00 <[email protected]>
1 parent ceb8a67 commit d25b7fc

File tree

78 files changed

+363
-380
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+363
-380
lines changed

website/docs/architecture/overview.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A very high level overview of the entire Litmus architecture with the objective
1414

1515
### [Control Plane](chaos-control-plane.md)
1616

17-
Consists of micro-services responsible for the functioning of the ChaosCenter, the web based portal used for creating, scheduling, and monitoring chaos scenarios.
17+
Consists of micro-services responsible for the functioning of the ChaosCenter, the web based portal used for creating, scheduling, and monitoring chaos experiments.
1818

1919
### [Execution Plane](chaos-execution-plane.md)
2020

website/docs/concepts/chaos-workflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ The term **Chaos Scenario/Workflow** has been changed to **Chaos Experiment**.
2222

2323
## Prerequisites
2424

25-
The following should be required before creating a Chaos Experiment:
25+
The following are required before creating a Chaos Experiment:
2626

2727
- [ChaosCenter](../getting-started/resources.md#chaoscenter)
2828
- [Chaos Infrastructure](../getting-started/resources.md#chaosagents)

website/docs/integrations/grafana.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Chaos Engineering is the discipline of experimenting on a system to build confid
1010

1111
## Before you begin
1212

13-
The following should be required before integrating Grafana with litmus 2.0:
13+
The following are required before integrating Grafana with litmus 2.0:
1414

1515
- [Prometheus TSDB](https://prometheus.io/)
1616
- [Prometheus Integration](prometheus.md)

website/docs/integrations/prometheus.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ LitmusChaos facilitates real-time monitoring for events and metrics using it’s
1010

1111
## Before you begin
1212

13-
The following should be required before integrating Prometheus in litmus 2.0:
13+
The following are required before integrating Prometheus in litmus 2.0:
1414

1515
- [Prometheus TSDB](https://prometheus.io/)
1616
- [Probes](../concepts/probes.md)

website/docs/user-guides/accept-invite.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ Once the invitation is received, you can take a look at invitation project name,
1010

1111
<img src={require('../assets/user-guides/teaming/accept-invite/step-1.png').default} />
1212

13-
Once accepted, you can switch to the project using the side nav as shown below:
13+
Once accepted, you can switch to the project using the side navigating as shown below:
1414

1515
<img src={require('../assets/user-guides/teaming/accept-invite/step-2.png').default} />

website/docs/user-guides/account-settings.md

+11-9
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,46 @@
11
---
22
id: account-settings
3-
title: Account Settings
4-
sidebar_label: Account Settings
3+
title: Account settings
4+
sidebar_label: Account settings
55
---
66

77
---
88

99
Under the account settings, you can change your personal details such as the email, name, and password.
1010

11-
> Note: The username can’t be changed as it is unique.
11+
:::note
12+
The username can’t be changed as it is unique.
13+
:::
1214

13-
To navigate to the accounts page, click on the user avatar on the bottom left of the nav-bar:
15+
To navigate to the accounts page, click on the user avatar on the bottom left of the navbar:
1416

1517
<figure>
1618
<img src={require('../assets/user-guides/my-account/step-1.png').default} alt="avatar nav" />
1719
</figure>
1820

19-
## Edit Personal Details
21+
## Edit personal details
2022

2123
Click the edit icon to open the edit modal:
2224

2325
<figure>
2426
<img src={require('../assets/user-guides/my-account/step-2.png').default} alt="edit icon" />
2527
</figure>
2628

27-
Enter your name and your email address in the following text fields and click on the `Confirm` button to save the new details.
29+
Enter your name and email address in the following text fields and click on the **Confirm** button to save the new details.
2830

2931
<figure>
3032
<img src={require('../assets/user-guides/my-account/step-3.png').default} alt="edit information" />
3133
</figure>
3234

33-
## Change Password
35+
## Change password
3436

35-
On the same page, you can change your password by clicking on the `Change Password` button.
37+
On the same page, you can change your password by clicking on the **Change Password** button.
3638

3739
<figure>
3840
<img src={require('../assets/user-guides/my-account/step-4.png').default} alt="edit information" />
3941
</figure>
4042

41-
To update your password enter your current password as well as the new password you wish to set and click **Confirm**
43+
To update your password enter your current password as well as the new password you wish to set and select **Confirm**.
4244

4345
<figure>
4446
<img src={require('../assets/user-guides/my-account/step-5.png').default} alt="edit information" />

website/docs/user-guides/analyze-workflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,6 @@ On clicking on a bar, more details about the chaos scenario run represented by t
5454

5555
## Learn more
5656

57-
- [Compare Chaos Scenarios](comparative-analysis.md)
57+
- [Compare Chaos Experiments](comparative-analysis.md)
5858
- [Manage Application Dashboard](manage-app-dashboard.md)
5959
- [Configure Datasource](configure-datasource.md)

website/docs/user-guides/change-project-name.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
id: change-project-name
3-
title: Changing Project Name
4-
sidebar_label: Change Project Name
3+
title: Changing project name
4+
sidebar_label: Change project name
55
---
66

77
---
88

9-
Owners have the ability to change the name of their project if they wish to do so.
9+
Owners have the ability to change the name of their project.
1010

1111
## Before you begin
1212

13-
The concept of `Projects` is discussed [here](../concepts/projects.md) and will help you build a foundational understanding of what projects mean in the ChaosCenter.
13+
The concept of **Projects** is discussed [here](../concepts/projects.md) and will help you build a foundational understanding of what projects mean in the ChaosCenter.
1414

1515
## Steps
1616

17-
### 1. Go to `Account setting`
17+
### 1. Go to **Account setting**
1818

19-
Go to the `Overview` section of settings and scroll to the `Your Projects` section:
19+
Go to the **Overview** section of settings and scroll to the **Your Projects** section:
2020

2121
<img src={require('../assets/user-guides/managing-projects/change-project-name/step-1.png').default} width="1000" height="500" />
2222

@@ -28,7 +28,7 @@ Click options icon to open the options menu and click on the edit option (demons
2828

2929
### 3. Replace name
3030

31-
Once in the editing mode, type out the name you want to replace the current name with, and click on the `Confirm` button.
31+
Once in the editing mode, type out the name you want to replace the current name with, and click on the **Confirm** button.
3232

3333
<img src={require('../assets/user-guides/managing-projects/change-project-name/step-3.png').default} />
3434

website/docs/user-guides/chaoscenter-oauth-dex-installation.md

+23-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
---
22
id: chaoscenter-oauth-dex-installation
3-
title: ChaosCenter with OAuth2 Login Support
4-
sidebar_label: OAuth2 Support using Dex
3+
title: ChaosCenter with OAuth2 login support
4+
sidebar_label: OAuth2 support using Dex
55
---
66

77
---
88

9-
# Prerequisites
9+
## Prerequisites
1010

11-
Before deploying LitmusChaos, make sure the following items are there
11+
Before deploying LitmusChaos, make sure the following items are there:
1212

1313
- Kubernetes 1.17 or later
1414

1515
- A Persistent volume of 20GB
1616

1717
:::note
18-
Recommend to have a Persistent volume(PV) of 20GB, You can start with 1GB for test purposes as well. This PV is used as persistent storage to store the chaos config and chaos-metrics in the Portal. By default, litmus install would use the default storage class to allocate the PV. Provide this value
18+
Although it is recommended to have a Persistent Volume(PV) of 20GB, you can start with 1GB for test purposes as well. This PV is used as persistent storage to store the chaos config and chaos-metrics in ChaosCenter. By default, Litmus would use the default storage class to allocate the PV.
1919
:::
2020

2121
- [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
@@ -28,9 +28,9 @@ Before deploying LitmusChaos, make sure the following items are there
2828

2929
## Deploy Dex OIDC provider
3030

31-
In order to enable OAuth2 and to be able to login via Google and GitHub, litmus uses [Dex OIDC](https://dexidp.io/)
31+
In order to enable OAuth2 and to be able to login via Google and GitHub, litmus uses [Dex OIDC](https://dexidp.io/).
3232

33-
Make sure you have your Google and GitHub Client credentials ready, if you do not have them, you can generate one yourself
33+
Make sure you have your Google and GitHub client credentials ready. If you do not have them, you can generate one yourself:
3434

3535
- [Guide to generating Google Oauth Client Credentials](https://support.google.com/cloud/answer/6158849?hl=en#zippy=)
3636
- [Guide to generating GitHub OAuth Client Credentials](https://docs.github.com/en/developers/apps/building-oauth-apps/creating-an-oauth-app)
@@ -78,7 +78,9 @@ curl https://raw.githubusercontent.com/litmuschaos/litmus/master/litmus-portal/d
7878
redirectURI: http://<NODE_IP>:32000/callback # Replace your NODE_IP here
7979
```
8080
81-
**Note: The Dex OIDC provider runs at `NODE_IP:32000` by default**
81+
:::info
82+
The Dex OIDC provider runs at `NODE_IP:32000` by default
83+
:::
8284

8385
After the configuration, deploy the Dex deployment using the following command:
8486

@@ -94,41 +96,41 @@ kubectl get pods -n litmus
9496

9597
<span style={{color: 'green'}}><b>Expected Output</b></span>
9698

97-
```bash
99+
```
98100
NAME READY STATUS RESTARTS AGE
99101
litmusportal-dex-server-7f7658b57-lbbxc 1/1 Running 0 107s
100102
litmusportal-frontend-74d456746f-56v9x 1/1 Running 0 5m57s
101103
litmusportal-server-9c4d85f57-5r6km 2/2 Running 0 5m57s
102104
mongo-0 1/1 Running 0 5m57s
103105
```
104106

105-
### Configuring `chaos-litmus-auth-server` to enable Dex features
107+
### Configuring authentication server to enable Dex features
106108

107-
To set up Dex, we would require to modify our litmusportal-server a bit in order to communicate with Dex. This will be achieved by adding some environment variables
109+
To set up Dex, the backend server needs to be modified to communicate with Dex. This can be achieved by adding some environment variables:
108110

109-
- `OIDC_ISSUER`: The place where the Dex OIDC is hosted, i.e `NODE_IP:32000` or `https://dex.yourdomain.com`
110-
- `DEX_ENABLED`: This variable enables dex features in the litmusportal-server
111-
- `DEX_OAUTH_CALLBACK_URL`: This is the url that will be called back after user completes thier OAuth, this will be the litmusportal-frontend service
112-
- `DEX_OAUTH_CLIENT_ID`: This parameter is defined in the `dex-deployment.yaml` file the defaults being `LitmusPortalAuthBackend`
113-
- `DEX_OAUTH_CLIENT_SECRET`: This parameter is defined in the `dex-deployment.yaml` file the defaults being `ZXhhbXBsZS1hcHAtc2VjcmV0`
111+
- `OIDC_ISSUER`: The address where the Dex OIDC is hosted, i.e. `NODE_IP:32000` or `https://dex.yourdomain.com`.
112+
- `DEX_ENABLED`: Toggle Dex features in the backend server.
113+
- `DEX_OAUTH_CALLBACK_URL`: The URL to be called back after user completes OAuth verification, this will be the frontend service.
114+
- `DEX_OAUTH_CLIENT_ID`: This parameter is defined in the `dex-deployment.yaml` file, defaults to `LitmusPortalAuthBackend`.
115+
- `DEX_OAUTH_CLIENT_SECRET`: This parameter is defined in the `dex-deployment.yaml`, defaults to `ZXhhbXBsZS1hcHAtc2VjcmV0`.
114116

115-
Set your variables using
117+
Set the environment variables using the following command:
116118

117119
```bash
118120
kubectl set env deployment/chaos-litmus-auth-server -n litmus --containers="auth-server" DEX_ENABLED=true OIDC_ISSUER=<REPLACE_NODE_IP>:32000 DEX_OAUTH_CALLBACK_URL=https://<REPLACE_FRONTEND_URL>/auth/dex/callback DEX_OAUTH_CLIENT_ID=LitmusPortalAuthBackend DEX_OAUTH_CLIENT_SECRET=ZXhhbXBsZS1hcHAtc2VjcmV0
119121
```
120122

121-
Your chaos-litmus-auth-server pod(s) will be restarted and Dex features will be enabled!
123+
After this, your authentication server pod(s) will be restarted and Dex features will be enabled.
122124

123125
### Verifying if OAuth2 is enabled
124126

125-
Run the following command to check the env variables of the `auth-server`
127+
Run the following command to check the environment variables for the authentication server.
126128

127129
```bash
128130
kubectl describe deployment litmusportal-server -n litmus auth-server
129131
```
130132

131-
Under `auth-server`, verify if the `DEX_ENABLED` variables are set
133+
Under `auth-server`, verify if the `DEX_ENABLED` variables are set.
132134

133135
<span style={{color: 'green'}}><b>Expected Output</b></span>
134136

@@ -151,7 +153,7 @@ Under `auth-server`, verify if the `DEX_ENABLED` variables are set
151153
Mounts: <none>
152154
```
153155

154-
Go to http://litmusportal-frontend-service/auth/dex/login, you should be prompted with Google or GitHub login
156+
Go to http://litmusportal-frontend-service/auth/dex/login, you should be prompted with Google or GitHub login.
155157

156158
![litmus-oauth-image](https://user-images.githubusercontent.com/31009634/135559389-c8cdf53c-76cf-4f9d-acaa-99014540f9cf.png)
157159

website/docs/user-guides/construct-experiment.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
22
id: construct-experiment
3-
title: Construct Chaos Scenario YAML without ChaosCenter
4-
sidebar_label: Construct Chaos Scenario YAML
3+
title: Construct chaos experiment YAML without ChaosCenter
4+
sidebar_label: Construct chaos experiment YAML
55
---
66

77
---
88

9-
**Chaos Scenario** is a set of different operations coupled together to achieve desired chaos imapact on a Kubernetes Cluster. <br/>
10-
A basic chaos scenario consists of these steps:
9+
**Chaos Experiment** is a set of different operations coupled together to achieve desired chaos impact on a Kubernetes Cluster.
1110

12-
1. Install ChaosExperiment
13-
2. Install ChaosEngine
14-
3. Revert Chaos
11+
A basic chaos experiment consists of these steps:
12+
1. Install ChaosExperiment CR
13+
2. Install ChaosEngine CR
14+
3. Cleanup Chaos resources
1515

1616
## Before we begin
1717

18-
To construct a Chaos Scenario without ChaosCenter, make sure you are aware of [Chaos Scenario](../concepts/chaos-workflow.md), [ChaosEngine CR](../glossary.md) and the different steps present in it.
18+
To construct a Chaos Experiment without ChaosCenter, make sure you are aware of [Chaos Experiment](../concepts/chaos-workflow.md), [ChaosEngine CR](../glossary.md) and the different steps present in it.
1919

20-
## Steps to Construct a Chaos Scenario
20+
## Steps to construct a chaos experiment
2121

22-
LitmusChaos leverages the popular chaos scenario and GitOps tool **Argo** to achieve this goal. Argo enables the orchestration of different chaos scenarios together in the form of chaos scenario which is extremly simple and efficient to use.<br/>
22+
LitmusChaos leverages the popular GitOps tool **Argo** to achieve this goal. Argo enables the orchestration of different chaos faults together in the form of a single chaos experiment which is extremely simple and efficient to setup and use.
2323

24-
The structure of a chaos scenario is similar to that of a Kubernetes Object. It consists of the mandatory fields like `apiVersion`, `kind`, `metadata`, `spec`.
24+
The structure of a chaos experiment is similar to that of a Kubernetes Object. It consists of the mandatory fields like `apiVersion`, `kind`, `metadata`, `spec`.
2525

26-
Few additional terms in an Argo chaos scenarios are:
26+
Few additional terms in an Argo chaos experiments are:
2727

2828
1. **Template** : It consists of different steps with their specific operations.
2929

@@ -39,7 +39,7 @@ Few additional terms in an Argo chaos scenarios are:
3939
template: revert-chaos
4040
```
4141
42-
2. **Steps** : It is a single step inside a chaos scenario which runs a container based on the input parameters.
42+
2. **Steps** : It is a single step inside a chaos experiment which runs a container based on the input parameters.
4343
These can also be sequenced parallely.
4444
4545
```yaml
@@ -54,7 +54,7 @@ steps:
5454
template: revert-chaos
5555
```
5656
57-
3. **Entrypoint** : The first step that executes in a chaos scenario is called its entrypoint.
57+
3. **Entrypoint** : The first step that executes in a chaos experiment is called its entrypoint.
5858
5959
```yaml
6060
entrypoint: custom-chaos
@@ -78,7 +78,7 @@ Here, the template with the name `custom-chaos` will be executed first.
7878
message: |...
7979
```
8080

81-
Once the chaos scenario is constructed, it should look like this:
81+
Once the chaos experiment is constructed, it should look like this:
8282

8383
```yaml
8484
apiVersion: argoproj.io/v1alpha1

website/docs/user-guides/create-environment.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ You can learn about the concept of chaos environments [here](../concepts/infrast
1010

1111
## 1. Go to the Environments section
1212

13-
Navigate to the `/environments` page (Environments on the left nav), and click on the `New Environment` button
13+
Navigate to the `/environments` page (**Environments** sidebar option on the left nav), and click on the **New Environment** button
1414

1515
<img src={require('../assets/user-guides/environment/create-environment/step-1.png').default} />
1616

1717
## 2. Add Environment details
1818

19-
Add the details of the environment to be created such as name, description, tags, as well as the type of environment, i.e. `Pre-Production` and `Production`, these are meant to help further categorize the environments you are working with.
19+
Add the details of the environment to be created such as name, description, tags, as well as the type of environment, i.e. **Pre-Production** and **Production**, these are meant to help further categorize the environments you are working with.
2020

2121
<img src={require('../assets/user-guides/environment/create-environment/step-2.png').default} />
2222

0 commit comments

Comments
 (0)