-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding test, readme and rbac for pod-delete experiment and minor docs…
… update for sdk (#32) * adding test, readme, and rbac for pod-delete experiment and docs update for SDK Signed-off-by: Oum Kale <oumkale@chaosnative.com>
- Loading branch information
Showing
9 changed files
with
113 additions
and
7 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
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
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,15 @@ | ||
## Experiment Metadata | ||
|
||
<table> | ||
<tr> | ||
<th> Name </th> | ||
<th> Description </th> | ||
<th> Documentation Link </th> | ||
</tr> | ||
<tr> | ||
<td> Pod Delete </td> | ||
<td> This experiment causes (forced/graceful) pod failure of random replicas of an application deployment. It tests deployment sanity (replica availability & uninterrupted service) and recovery workflows of the application pod </td> | ||
<td> <a href="https://litmuschaos.github.io/litmus/experiments/categories/pods/pod-delete/"> Here </a> </td> | ||
</tr> | ||
</table> | ||
|
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: pod-delete-sa | ||
namespace: default | ||
labels: | ||
name: pod-delete-sa | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: Role | ||
metadata: | ||
name: pod-delete-sa | ||
namespace: default | ||
labels: | ||
name: pod-delete-sa | ||
rules: | ||
- apiGroups: ["","litmuschaos.io","batch","apps"] | ||
resources: ["pods","deployments","pods/log","events","jobs","chaosengines","chaosexperiments","chaosresults"] | ||
verbs: ["create","list","get","patch","update","delete","deletecollection"] | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: RoleBinding | ||
metadata: | ||
name: pod-delete-sa | ||
namespace: default | ||
labels: | ||
name: pod-delete-sa | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: Role | ||
name: pod-delete-sa | ||
subjects: | ||
- kind: ServiceAccount | ||
name: pod-delete-sa | ||
namespace: default | ||
|
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,54 @@ | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: litmus-experiment | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
app: litmus-experiment | ||
template: | ||
metadata: | ||
labels: | ||
app: litmus-experiment | ||
spec: | ||
serviceAccountName: pod-delete-sa | ||
containers: | ||
- name: gotest | ||
image: busybox | ||
command: | ||
- sleep | ||
- "3600" | ||
env: | ||
- name: APP_NAMESPACE | ||
value: '' | ||
|
||
- name: APP_LABEL | ||
value: '' | ||
|
||
- name: APP_KIND | ||
value: '' | ||
|
||
- name: TOTAL_CHAOS_DURATION | ||
value: '' | ||
|
||
- name: CHAOS_INTERVAL | ||
value: '' | ||
|
||
- name: FORCE | ||
value: '' | ||
|
||
- name: LIB | ||
value: 'litmus' | ||
|
||
- name: CHAOS_NAMESPACE | ||
value: '' | ||
|
||
- name: RAMP_TIME | ||
value: '' | ||
|
||
- name: POD_NAME | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: metadata.name |
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