chore(experiment): updating the lib and socketPath (#389)

Signed-off-by: shubhamchaudhary <shubham.chaudhary@mayadata.io>
This commit is contained in:
Shubham Chaudhary
2020-12-14 17:11:51 +05:30
committed by GitHub
parent 0b316a90c0
commit 546a47758a
10 changed files with 37 additions and 66 deletions

View File

@@ -23,10 +23,6 @@ spec:
spec: spec:
components: components:
env: env:
# specify the name of the container to be killed
- name: TARGET_CONTAINER
value: 'nginx'
# provide the chaos interval # provide the chaos interval
- name: CHAOS_INTERVAL - name: CHAOS_INTERVAL
value: '10' value: '10'
@@ -36,13 +32,12 @@ spec:
value: '20' value: '20'
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
# provide the socket file path # provide the socket file path
# applicable only for containerd runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'

View File

@@ -51,6 +51,7 @@ spec:
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
# lib can be litmus or pumba
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
@@ -62,13 +63,12 @@ spec:
value: '10' value: '10'
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
@@ -88,10 +88,6 @@ spec:
- name: SEQUENCE - name: SEQUENCE
value: 'parallel' value: 'parallel'
securityContext:
containerSecurityContext:
privileged: true
labels: labels:
name: container-kill name: container-kill
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus

View File

@@ -24,10 +24,6 @@ spec:
spec: spec:
components: components:
env: env:
#Container name where chaos has to be injected
- name: TARGET_CONTAINER
value: 'nginx'
- name: LIB_IMAGE - name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest' value: 'litmuschaos/go-runner:latest'
@@ -39,12 +35,11 @@ spec:
value: '60' # in seconds value: '60' # in seconds
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'

View File

@@ -65,7 +65,8 @@ spec:
# Time period to wait before and after injection of chaos in sec # Time period to wait before and after injection of chaos in sec
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
# lib can be litmus or pumba
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
@@ -77,8 +78,8 @@ spec:
value: '' value: ''
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
@@ -93,9 +94,8 @@ spec:
value: '' value: ''
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'
## it defines the sequence of chaos execution for multiple target pods ## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel ## supported values: serial, parallel

View File

@@ -37,18 +37,13 @@ spec:
- name: NETWORK_PACKET_DUPLICATION_PERCENTAGE - name: NETWORK_PACKET_DUPLICATION_PERCENTAGE
value: '100' value: '100'
#If not provided it will take the first container of the target pod
- name: TARGET_CONTAINER
value: ''
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'

View File

@@ -59,6 +59,7 @@ spec:
- name: NETWORK_PACKET_DUPLICATION_PERCENTAGE - name: NETWORK_PACKET_DUPLICATION_PERCENTAGE
value: '100' # in percentage value: '100' # in percentage
# lib can be litmus or pumba
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
@@ -73,8 +74,8 @@ spec:
value: 'litmuschaos/go-runner:latest' value: 'litmuschaos/go-runner:latest'
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
@@ -89,9 +90,8 @@ spec:
value: '' value: ''
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'
## it defines the sequence of chaos execution for multiple target pods ## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel ## supported values: serial, parallel

View File

@@ -24,10 +24,6 @@ spec:
spec: spec:
components: components:
env: env:
#Container name where chaos has to be injected
- name: TARGET_CONTAINER
value: 'nginx'
#Network interface inside target container #Network interface inside target container
- name: NETWORK_INTERFACE - name: NETWORK_INTERFACE
value: 'eth0' value: 'eth0'
@@ -42,12 +38,11 @@ spec:
value: '60' # in seconds value: '60' # in seconds
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'

View File

@@ -66,6 +66,7 @@ spec:
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
# lib can be litmus or pumba
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
@@ -77,8 +78,8 @@ spec:
value: '' value: ''
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
@@ -93,9 +94,8 @@ spec:
value: '' value: ''
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'
## it defines the sequence of chaos execution for multiple target pods ## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel ## supported values: serial, parallel

View File

@@ -25,10 +25,6 @@ spec:
spec: spec:
components: components:
env: env:
#Container name where chaos has to be injected
- name: TARGET_CONTAINER
value: 'nginx'
- name: LIB_IMAGE - name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest' value: 'litmuschaos/go-runner:latest'
@@ -43,13 +39,12 @@ spec:
value: '60' # in seconds value: '60' # in seconds
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'

View File

@@ -66,6 +66,7 @@ spec:
- name: RAMP_TIME - name: RAMP_TIME
value: '' value: ''
# it can be litmus or pumba
- name: LIB - name: LIB
value: 'litmus' value: 'litmus'
@@ -77,8 +78,8 @@ spec:
value: '' value: ''
# provide the name of container runtime # provide the name of container runtime
# it supports docker, containerd, crio # for litmus LIB, it supports docker, containerd, crio
# default to docker # for pumba LIB, it supports docker only
- name: CONTAINER_RUNTIME - name: CONTAINER_RUNTIME
value: 'docker' value: 'docker'
@@ -93,9 +94,8 @@ spec:
value: '' value: ''
# provide the socket file path # provide the socket file path
# applicable only for containerd and crio runtime
- name: SOCKET_PATH - name: SOCKET_PATH
value: '/run/containerd/containerd.sock' value: '/var/run/docker.sock'
## it defines the sequence of chaos execution for multiple target pods ## it defines the sequence of chaos execution for multiple target pods
## supported values: serial, parallel ## supported values: serial, parallel