forked from GokulAnanthNkp/ChaosProject1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.py
20 lines (19 loc) · 782 Bytes
/
test.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import subprocess,time
result = subprocess.run(['minikube','start'])
print (result)
time.sleep(2)
result = subprocess.run(['minikube','status'])
print (result)
result = subprocess.run(['kubectl', 'apply', '-f','https://litmuschaos.github.io/litmus/litmus-operator-v1.13.8.yaml'])
print (result)
result = subprocess.run(['kubectl', 'apply', '-f','https://hub.litmuschaos.io/api/chaos/1.13.8?file=charts/kube-aws/ec2-terminate-by-id/experiment.yaml'])
print (result)
result = subprocess.run(['kubectl', 'apply', '-f','secrets.yml'])
print (result)
result = subprocess.run(['kubectl', 'apply', '-f','rbac.yml'])
print (result)
result = subprocess.run(['kubectl', 'apply', '-f', 'engine.yml'])
print (result)
time.sleep(120)
result = subprocess.run(['minikube','stop'])
print (result)