-
Notifications
You must be signed in to change notification settings - Fork 693
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1113 from amitbhatt818/cherryPick
[Cherry pick into v1.0.x for GA]
- Loading branch information
Showing
13 changed files
with
98 additions
and
728 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
## Experiment Metadata | ||
|
||
<table> | ||
<tr> | ||
<th> Name </th> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
## Experiment Metadata | ||
|
||
| Type | Description | K8s Platform | | ||
| ----- | ------------------------------------------------------------ | ------------ | | ||
| Chaos | Inject network packet corruption into application pod | Any | | ||
|
||
## Experient documentation | ||
|
||
The corresponding documentation can be found [here](https://docs.litmuschaos.io/docs/pod-network-corruption/) | ||
<table> | ||
<tr> | ||
<th> Name </th> | ||
<th> Description </th> | ||
<th> Documentation Link </th> | ||
</tr> | ||
<tr> | ||
<td> Pod Network Corruption </td> | ||
<td> Inject network packet corruption into application pod | ||
</td> | ||
<td> <a href="https://docs.litmuschaos.io/docs/pod-network-corruption/"> Here </a> </td> | ||
</tr> | ||
</table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
## Experiment Metadata | ||
|
||
<table> | ||
<tr> | ||
<th> Name </th> | ||
<th> Description </th> | ||
<th> Documentation Link </th> | ||
</tr> | ||
<tr> | ||
<td> Kafka Broker Disk Failure </td> | ||
<td> Fail kafka broker disk/storage. This experiment causes forced detach of specified disk serving as storage for the Kafka broker pod </td> | ||
<td> <a href="https://docs.litmuschaos.io/docs/kafka-broker-disk-failure/"> Here </a> </td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,14 @@ | ||
### Sample ChaosEngine manifest to execute kafka broker kill experiment | ||
|
||
- To override experiment defaults, add the ENV variables in `spec.components` of the experiment. | ||
|
||
```yml | ||
apiVersion: litmuschaos.io/v1alpha1 | ||
kind: ChaosEngine | ||
metadata: | ||
name: kafka-chaos | ||
namespace: default | ||
spec: | ||
appinfo: | ||
appns: default | ||
applabel: 'app=cp-kafka' | ||
appkind: statefulset | ||
chaosServiceAccount: kafka-sa | ||
monitoring: false | ||
experiments: | ||
- name: kafka-broker-pod-failure | ||
spec: | ||
components: | ||
# choose based on available kafka broker replicas | ||
- name: KAFKA_REPLICATION_FACTOR | ||
value: '3' | ||
|
||
# get via "kubectl get pods --show-labels -n <kafka-namespace>" | ||
- name: KAFKA_LABEL | ||
value: 'app=cp-kafka' | ||
|
||
- name: KAFKA_NAMESPACE | ||
value: 'default' | ||
|
||
# get via "kubectl get svc -n <kafka-namespace>" | ||
- name: KAFKA_SERVICE | ||
value: 'kafka-cp-kafka-headless' | ||
|
||
# get via "kubectl get svc -n <kafka-namespace> | ||
- name: KAFKA_PORT | ||
value: '9092' | ||
|
||
- name: ZOOKEEPER_NAMESPACE | ||
value: 'default' | ||
|
||
# get via "kubectl get pods --show-labels -n <zk-namespace>" | ||
- name: ZOOKEEPER_LABEL | ||
value: 'app=cp-zookeeper' | ||
|
||
# get via "kubectl get svc -n <zk-namespace> | ||
- name: ZOOKEEPER_SERVICE | ||
value: 'kafka-cp-zookeeper-headless' | ||
|
||
# get via "kubectl get svc -n <zk-namespace> | ||
- name: ZOOKEEPER_PORT | ||
value: '2181' | ||
``` | ||
## Experiment Metadata | ||
|
||
<table> | ||
<tr> | ||
<th> Name </th> | ||
<th> Description </th> | ||
<th> Documentation Link </th> | ||
</tr> | ||
<tr> | ||
<td> Kafka Broker Pod Failure </td> | ||
<td> Fail kafka leader-broker pods. This experiment causes (forced/graceful) pod failure of specific/random Kafka broker pods</td> | ||
<td> <a href="https://docs.litmuschaos.io/docs/kafka-broker-pod-failure/"> Here </a> </td> | ||
</tr> | ||
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.