mirror of
https://github.com/cupcakearmy/master-thesis.git
synced 2026-04-02 11:55:30 +00:00
Clear History
This commit is contained in:
110
code/src/templates/demo/chaos-link.yaml
Normal file
110
code/src/templates/demo/chaos-link.yaml
Normal file
@@ -0,0 +1,110 @@
|
||||
kind: NetworkChaos
|
||||
apiVersion: chaos-mesh.org/v1alpha1
|
||||
metadata:
|
||||
namespace: simulator
|
||||
name: test
|
||||
spec:
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
labelSelectors:
|
||||
node: a
|
||||
mode: all
|
||||
action: bandwidth
|
||||
direction: to
|
||||
target:
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
labelSelectors:
|
||||
node: b
|
||||
mode: all
|
||||
bandwidth:
|
||||
rate: 10mbps
|
||||
limit: 2000000000
|
||||
buffer: 200000
|
||||
delay:
|
||||
latency: 50ms
|
||||
correlation: '25'
|
||||
jitter: 25ms
|
||||
# loss:
|
||||
# loss: '1'
|
||||
# duplicate:
|
||||
# duplicate: '1'
|
||||
# corrupt:
|
||||
# corrupt: '1'
|
||||
# ---
|
||||
# kind: NetworkChaos
|
||||
# apiVersion: chaos-mesh.org/v1alpha1
|
||||
# metadata:
|
||||
# namespace: simulator
|
||||
# name: link-a-b
|
||||
# spec:
|
||||
# selector:
|
||||
# namespaces:
|
||||
# - simulator
|
||||
# labelSelectors:
|
||||
# node: a
|
||||
# mode: all
|
||||
# action: partition
|
||||
# direction: to
|
||||
# target:
|
||||
# selector:
|
||||
# namespaces:
|
||||
# - simulator
|
||||
# labelSelectors:
|
||||
# node: b
|
||||
# mode: all
|
||||
# ---
|
||||
# kind: NetworkChaos
|
||||
# apiVersion: chaos-mesh.org/v1alpha1
|
||||
# metadata:
|
||||
# namespace: simulator
|
||||
# name: test
|
||||
# spec:
|
||||
# selector:
|
||||
# namespaces:
|
||||
# - simulator
|
||||
# labelSelectors:
|
||||
# node: a
|
||||
# mode: all
|
||||
# action: delay
|
||||
# delay:
|
||||
# latency: 10ms
|
||||
# correlation: '0'
|
||||
# jitter: 1ms
|
||||
# direction: both
|
||||
# target:
|
||||
# selector:
|
||||
# namespaces:
|
||||
# - simulator
|
||||
# labelSelectors:
|
||||
# node: b
|
||||
# mode: all
|
||||
|
||||
# ---
|
||||
# kind: NetworkChaos
|
||||
# apiVersion: chaos-mesh.org/v1alpha1
|
||||
# metadata:
|
||||
# namespace: simulator
|
||||
# name: band-b
|
||||
# spec:
|
||||
# selector:
|
||||
# namespaces:
|
||||
# - simulator
|
||||
# labelSelectors:
|
||||
# node: a
|
||||
# mode: all
|
||||
# action: bandwidth
|
||||
# bandwidth:
|
||||
# rate: 10mbps
|
||||
# limit: 2000000000
|
||||
# buffer: 1500
|
||||
# direction: both
|
||||
# target:
|
||||
# selector:
|
||||
# namespaces:
|
||||
# - simulator
|
||||
# labelSelectors:
|
||||
# node: b
|
||||
# mode: all
|
||||
25
code/src/templates/demo/link.yaml
Normal file
25
code/src/templates/demo/link.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: iluzio.nicco.io/v1
|
||||
kind: Link
|
||||
metadata:
|
||||
name: test-link
|
||||
spec:
|
||||
from: a
|
||||
to: b
|
||||
# direction: uni
|
||||
direction: bi
|
||||
# bandwidth:
|
||||
# rate: 1kbps
|
||||
# # limit: 20971520
|
||||
# limit: 10000
|
||||
# buffer: 5000
|
||||
# delay:
|
||||
# latency: 100ms
|
||||
# correlation: '0'
|
||||
# jitter: 50ms
|
||||
# loss:
|
||||
# loss: '0.5'
|
||||
# correlation: '100'
|
||||
# duplicate:
|
||||
# duplicate: '1'
|
||||
# corrupt:
|
||||
# corrupt: '1'
|
||||
11
code/src/templates/demo/node.yaml
Normal file
11
code/src/templates/demo/node.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: iluzio.nicco.io/v1
|
||||
kind: Node
|
||||
metadata:
|
||||
name: b
|
||||
spec:
|
||||
image: idle
|
||||
resources:
|
||||
limits:
|
||||
memory: '128Mi'
|
||||
cpu: '500m'
|
||||
ephemeral-storage: '4Gi'
|
||||
25
code/src/templates/demo/test.yaml
Normal file
25
code/src/templates/demo/test.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
kind: NetworkChaos
|
||||
apiVersion: chaos-mesh.org/v1alpha1
|
||||
metadata:
|
||||
namespace: simulator
|
||||
name: band-b
|
||||
spec:
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
labelSelectors:
|
||||
node: a
|
||||
mode: all
|
||||
action: bandwidth
|
||||
bandwidth:
|
||||
rate: 10gbps
|
||||
limit: 2000000000
|
||||
buffer: 1500
|
||||
direction: both
|
||||
target:
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
labelSelectors:
|
||||
node: b
|
||||
mode: all
|
||||
47
code/src/templates/demo/workflow.yaml
Normal file
47
code/src/templates/demo/workflow.yaml
Normal file
@@ -0,0 +1,47 @@
|
||||
apiVersion: chaos-mesh.org/v1alpha1
|
||||
kind: Workflow
|
||||
metadata:
|
||||
name: test
|
||||
spec:
|
||||
entry: entry
|
||||
templates:
|
||||
- name: entry
|
||||
templateType: Serial
|
||||
children:
|
||||
- delay
|
||||
- loss
|
||||
- name: delay
|
||||
templateType: NetworkChaos
|
||||
networkChaos:
|
||||
action: delay
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
mode: all
|
||||
target:
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
mode: all
|
||||
direction: both
|
||||
delay:
|
||||
latency: '90ms'
|
||||
correlation: '25'
|
||||
jitter: '1ms'
|
||||
- name: loss
|
||||
templateType: NetworkChaos
|
||||
networkChaos:
|
||||
action: delay
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
mode: all
|
||||
target:
|
||||
selector:
|
||||
namespaces:
|
||||
- simulator
|
||||
mode: all
|
||||
direction: both
|
||||
loss:
|
||||
loss: '25'
|
||||
correlation: '25'
|
||||
Reference in New Issue
Block a user