From f027f86980e36712e32da3e038e385aa938a59ff Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Thu, 29 Sep 2022 17:47:59 +0530 Subject: [PATCH] feat(ports): Adding source and destination ports support in network experiments (#570) Signed-off-by: Shubham Chaudhary --- .../generic/pod-network-corruption/experiment.yaml | 10 ++++++++++ .../generic/pod-network-duplication/experiment.yaml | 10 ++++++++++ .../generic/pod-network-latency/experiment.yaml | 10 ++++++++++ experiments/generic/pod-network-loss/experiment.yaml | 10 ++++++++++ 4 files changed, 40 insertions(+) diff --git a/experiments/generic/pod-network-corruption/experiment.yaml b/experiments/generic/pod-network-corruption/experiment.yaml index 7d7859a..623b58d 100644 --- a/experiments/generic/pod-network-corruption/experiment.yaml +++ b/experiments/generic/pod-network-corruption/experiment.yaml @@ -121,6 +121,16 @@ spec: - name: DESTINATION_HOSTS value: '' + # provide the comma seperated source ports + # chaos injection will be triggered for these source ports + - name: SOURCE_PORTS + value: '' + + # provide the comma seperated destination ports + # chaos injection will be triggered for these destination ports + - name: DESTINATION_PORTS + value: '' + # provide the socket file path - name: SOCKET_PATH value: '/var/run/docker.sock' diff --git a/experiments/generic/pod-network-duplication/experiment.yaml b/experiments/generic/pod-network-duplication/experiment.yaml index d286b2f..b1f78f1 100644 --- a/experiments/generic/pod-network-duplication/experiment.yaml +++ b/experiments/generic/pod-network-duplication/experiment.yaml @@ -118,6 +118,16 @@ spec: - name: DESTINATION_HOSTS value: '' + # provide the comma seperated source ports + # chaos injection will be triggered for these source ports + - name: SOURCE_PORTS + value: '' + + # provide the comma seperated destination ports + # chaos injection will be triggered for these destination ports + - name: DESTINATION_PORTS + value: '' + # provide the socket file path - name: SOCKET_PATH value: '/var/run/docker.sock' diff --git a/experiments/generic/pod-network-latency/experiment.yaml b/experiments/generic/pod-network-latency/experiment.yaml index 89f92f1..ebea9f5 100644 --- a/experiments/generic/pod-network-latency/experiment.yaml +++ b/experiments/generic/pod-network-latency/experiment.yaml @@ -120,6 +120,16 @@ spec: - name: DESTINATION_HOSTS value: '' + # provide the comma seperated source ports + # chaos injection will be triggered for these source ports + - name: SOURCE_PORTS + value: '' + + # provide the comma seperated destination ports + # chaos injection will be triggered for these destination ports + - name: DESTINATION_PORTS + value: '' + # provide the socket file path - name: SOCKET_PATH value: '/var/run/docker.sock' diff --git a/experiments/generic/pod-network-loss/experiment.yaml b/experiments/generic/pod-network-loss/experiment.yaml index 069080b..c33f57a 100644 --- a/experiments/generic/pod-network-loss/experiment.yaml +++ b/experiments/generic/pod-network-loss/experiment.yaml @@ -121,6 +121,16 @@ spec: - name: DESTINATION_HOSTS value: '' + # provide the comma seperated source ports + # chaos injection will be triggered for these source ports + - name: SOURCE_PORTS + value: '' + + # provide the comma seperated destination ports + # chaos injection will be triggered for these destination ports + - name: DESTINATION_PORTS + value: '' + # provide the socket file path - name: SOCKET_PATH value: '/var/run/docker.sock'