You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Litmuschaos command-line tool, litmusctl, allows you to manage litmuschaos's agent plane. You can use litmusctl to create agents, project, and manage multiple litmuschaos accounts.
7
+
The Litmuschaos command-line tool, litmusctl, allows you to manage litmuschaos's agent plane. You can use litmusctl to connect Chaos Delegates, create project, schedule Chaos Scenarios, disconnect Chaos Delegates and manage multiple litmuschaos accounts.
8
8
9
9
## Usage
10
10
For more information including a complete list of litmusctl operations, see the litmusctl reference documentation.
@@ -17,10 +17,44 @@ For more information including a complete list of litmusctl operations, see the
17
17
18
18
The litmusctl CLI requires the following things:
19
19
20
-
- kubeconfig - litmusctl needs the kubeconfig of the k8s cluster where we need to connect litmus agents. The CLI currently uses the default path of kubeconfig i.e. `~/.kube/config`.
20
+
- kubeconfig - litmusctl needs the kubeconfig of the k8s cluster where we need to connect litmus Chaos Delegates. The CLI currently uses the default path of kubeconfig i.e. `~/.kube/config`.
21
21
- kubectl- litmusctl is using kubectl under the hood to apply the manifest. To install kubectl, follow: [kubectl](https://kubernetes.io/docs/tasks/tools/#kubectl)
22
22
23
23
24
+
## Compatibility matrix
25
+
26
+
To check compatibility of chaosctl with Chaos Center
27
+
28
+
<table>
29
+
<th>litmusctl version</th>
30
+
<th>Chaos Center supported versions</th>
31
+
32
+
<tr>
33
+
<td>0.6.0</td>
34
+
<td>2.2.0, 2.3.0</td>
35
+
</tr>
36
+
<tr>
37
+
<td>0.7.0</td>
38
+
<td>2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.8.0</td>
39
+
</tr>
40
+
<tr>
41
+
<td>0.8.0</td>
42
+
<td>2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.8.0</td>
43
+
</tr>
44
+
<tr>
45
+
<td>0.9.0</td>
46
+
<td>2.4.0, 2.5.0, 2.6.0, 2.7.0, 2.8.0</td>
47
+
</tr>
48
+
<tr>
49
+
<td>0.10.0</td>
50
+
<td>2.9.0, 2.10.0, 2.11.0</td>
51
+
</tr>
52
+
<tr>
53
+
<td>0.11.0</td>
54
+
<td>2.9.0, 2.10.0, 2.11.0</td>
55
+
</tr>
56
+
</table>
57
+
24
58
## Installation
25
59
26
60
To install the latest version of litmusctl follow the below steps:
Copy file name to clipboardExpand all lines: Usage.md
+53-65Lines changed: 53 additions & 65 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,91 +1,78 @@
1
-
# Usage: Litmusctl v0.3.0 (Non-Interactive mode)
2
-
> Notes:
3
-
> * For litmusctl v0.3.0 or latest
4
-
> * Compatible with Litmus 2.0.0-Beta9 or latest
5
-
6
1
### litmusctl Syntax
7
2
`litmusctl` has a syntax to use as follows:
8
3
9
4
```shell
10
5
litmusctl [command] [TYPE] [flags]
11
6
```
12
-
* Command: refers to what you do want to perform (create, get and config)
13
-
* Type: refers to the feature type you are performing a command against (agent, project etc.)
7
+
* Command: refers to what you do want to perform (connect, create, get and config)
8
+
* Type: refers to the feature type you are performing a command against (chaos-delegate, project etc.)
14
9
* Flags: It takes some additional information for resource operations. For example, `--installation-mode` allows you to specify an installation mode.
15
10
16
11
Litmusctl is using the `.litmusconfig` config file to manage multiple accounts
17
12
1. If the --config flag is set, then only the given file is loaded. The flag may only be set once and no merging takes place.
18
13
2. Otherwise, the ${HOME}/.litmusconfig file is used, and no merging takes place.
19
14
20
15
Litmusctl supports both interactive and non-interactive(flag based) modes.
21
-
> Only `litmusctl connect agent` command needs --non-interactive flag, other commands don't need this flag to be in non-interactive mode. If mandatory flags aren't passed, then litmusctl takes input in an interactive mode.
16
+
> Only `litmusctl connect chaos-delegate` command needs --non-interactive flag, other commands don't need this flag to be in non-interactive mode. If mandatory flags aren't passed, then litmusctl takes input in an interactive mode.
22
17
23
18
### Installation modes
24
-
Litmusctl can install an agent in two different modes.
25
-
* cluster mode: With this mode, the agent can run the chaos in any namespace. It installs appropriate cluster roles and cluster role bindings to achieve this mode. It can be enabled by passing a flag `--installation-mode=cluster`
19
+
Litmusctl can install a Chaos Delegate in two different modes.
20
+
* cluster mode: With this mode, the Chaos Delegate can run the chaos in any namespace. It installs appropriate cluster roles and cluster role bindings to achieve this mode. It can be enabled by passing a flag `--installation-mode=cluster`
26
21
27
-
* namespace mode: With this mode, the agent can run the chaos in its namespace. It installs appropriate roles and role bindings to achieve this mode. It can be enabled by passing a flag `--installation-mode=namespace`
22
+
* namespace mode: With this mode, the Chaos Delegate can run the chaos in its namespace. It installs appropriate roles and role bindings to achieve this mode. It can be enabled by passing a flag `--installation-mode=namespace`
28
23
29
-
Note: With namespace mode, the user needs to create the namespace to install the agent as a prerequisite.
24
+
Note: With namespace mode, the user needs to create the namespace to install the Chaos Delegate as a prerequisite.
0 commit comments