feat(network-chaos): Adding support for containerd/crio in network-chaos (#321)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-09-13 22:31:52 +05:30
committed by GitHub
parent 5705ef61d6
commit 218ed3a658
9 changed files with 96 additions and 7 deletions

View File

@@ -55,8 +55,8 @@ spec:
- name: CHAOS_INTERVAL - name: CHAOS_INTERVAL
value: '10' value: '10'
# provide the container runtime path for containerd # provide the container runtime path
# applicable only for containerd runtime # applicable only for containerd and crio runtime
- name: CONTAINER_PATH - name: CONTAINER_PATH
value: '/run/containerd/containerd.sock' value: '/run/containerd/containerd.sock'

View File

@@ -36,4 +36,15 @@ spec:
value: 'eth0' value: 'eth0'
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' # in seconds value: '60' # in seconds
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'

View File

@@ -61,7 +61,7 @@ spec:
value: '' value: ''
- name: LIB - name: LIB
value: 'pumba' value: 'litmus'
## percentage of total pods to target ## percentage of total pods to target
- name: PODS_AFFECTED_PERC - name: PODS_AFFECTED_PERC
@@ -69,5 +69,16 @@ spec:
- name: TARGET_POD - name: TARGET_POD
value: '' value: ''
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'
labels: labels:
name: pod-network-corruption name: pod-network-corruption

View File

@@ -41,3 +41,14 @@ spec:
#If not provided it will take the first container of the target pod #If not provided it will take the first container of the target pod
- name: TARGET_CONTAINER - name: TARGET_CONTAINER
value: '' value: ''
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'

View File

@@ -54,7 +54,7 @@ spec:
value: '100' # in percentage value: '100' # in percentage
- name: LIB - name: LIB
value: 'pumba' value: 'litmus'
- name: TARGET_POD - name: TARGET_POD
value: '' value: ''
@@ -66,5 +66,16 @@ spec:
- name: LIB_IMAGE - name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest' value: 'litmuschaos/go-runner:latest'
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'
labels: labels:
name: pod-network-duplication name: pod-network-duplication

View File

@@ -40,3 +40,14 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' # in seconds value: '60' # in seconds
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'

View File

@@ -61,7 +61,7 @@ spec:
value: '' value: ''
- name: LIB - name: LIB
value: 'pumba' value: 'litmus'
## percentage of total pods to target ## percentage of total pods to target
- name: PODS_AFFECTED_PERC - name: PODS_AFFECTED_PERC
@@ -69,5 +69,17 @@ spec:
- name: TARGET_POD - name: TARGET_POD
value: '' value: ''
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'
labels: labels:
name: pod-network-latency name: pod-network-latency

View File

@@ -41,4 +41,15 @@ spec:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' # in seconds value: '60' # in seconds
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'

View File

@@ -61,7 +61,7 @@ spec:
value: '' value: ''
- name: LIB - name: LIB
value: 'pumba' value: 'litmus'
## percentage of total pods to target ## percentage of total pods to target
- name: PODS_AFFECTED_PERC - name: PODS_AFFECTED_PERC
@@ -69,5 +69,16 @@ spec:
- name: TARGET_POD - name: TARGET_POD
value: '' value: ''
# provide the name of container runtime
# it supports docker, containerd, crio
# default to docker
- name: CONTAINER_RUNTIME
value: 'docker'
# provide the container runtime path
# applicable only for containerd and crio runtime
- name: CONTAINER_PATH
value: '/run/containerd/containerd.sock'
labels: labels:
name: pod-network-loss name: pod-network-loss