From a1c85ca52c9564e5552336409622bfd42d259539 Mon Sep 17 00:00:00 2001 From: Neelanjan Manna Date: Tue, 14 Mar 2023 19:41:02 +0530 Subject: [PATCH] chore(experiments): Replaces default container runtime to containerd (#640) * replaces default container runtime to containerd Signed-off-by: neelanjan00 --- experiments/aws-ssm/aws-ssm-chaos-by-id/test/test.yml | 2 -- .../aws-ssm/aws-ssm-chaos-by-tag/test/test.yml | 2 -- experiments/azure/azure-disk-loss/test/test.yml | 5 ----- experiments/azure/instance-stop/test/test.yml | 3 --- .../baremetal/redfish-node-restart/test/test.yml | 5 ----- experiments/cassandra/pod-delete/test/test.yml | 3 --- .../gcp/gcp-vm-disk-loss-by-label/test/test.yml | 5 ----- experiments/gcp/gcp-vm-disk-loss/test/test.yml | 5 ----- .../gcp/gcp-vm-instance-stop-by-label/test/test.yml | 5 ----- experiments/gcp/gcp-vm-instance-stop/test/test.yml | 2 -- experiments/generic/container-kill/test/test.yml | 7 ++----- experiments/generic/disk-fill/test/test.yml | 3 --- experiments/generic/docker-service-kill/test/test.yml | 5 ----- .../generic/kubelet-service-kill/test/test.yml | 3 --- experiments/generic/node-cpu-hog/test/test.yml | 3 --- experiments/generic/node-drain/test/test.yml | 3 --- experiments/generic/node-io-stress/test/test.yml | 3 --- experiments/generic/node-memory-hog/test/test.yml | 5 +---- experiments/generic/node-restart/test/test.yml | 5 +---- experiments/generic/node-taint/test/test.yml | 5 +---- experiments/generic/pod-autoscaler/test/test.yml | 5 ----- experiments/generic/pod-cpu-hog-exec/test/test.yml | 5 +---- experiments/generic/pod-cpu-hog/test/test.yml | 5 +---- experiments/generic/pod-delete/test/test.yml | 5 +---- experiments/generic/pod-dns-error/test/test.yml | 11 ++++------- experiments/generic/pod-dns-spoof/test/test.yml | 11 ++++------- experiments/generic/pod-fio-stress/test/test.yml | 5 +---- experiments/generic/pod-http-latency/test/test.yaml | 11 +++-------- .../generic/pod-http-modify-body/test/test.yml | 11 +++-------- .../generic/pod-http-modify-header/test/test.yaml | 11 +++-------- experiments/generic/pod-http-reset-peer/test/test.yml | 11 +++-------- .../generic/pod-http-status-code/test/test.yml | 11 +++-------- experiments/generic/pod-io-stress/test/test.yml | 5 +---- experiments/generic/pod-memory-hog-exec/test/test.yml | 5 +---- experiments/generic/pod-memory-hog/test/test.yml | 5 +---- .../generic/pod-network-corruption/test/test.yml | 9 +++------ .../generic/pod-network-duplication/test/test.yml | 9 +++------ experiments/generic/pod-network-latency/test/test.yml | 9 +++------ experiments/generic/pod-network-loss/test/test.yml | 9 +++------ experiments/kube-aws/ebs-loss-by-id/test/test.yml | 5 +---- experiments/kube-aws/ebs-loss-by-tag/test/test.yml | 5 +---- .../kube-aws/ec2-terminate-by-id/test/test.yml | 3 --- .../kube-aws/ec2-terminate-by-tag/test/test.yml | 3 --- pkg/generic/container-kill/environment/environment.go | 6 +++--- pkg/generic/disk-fill/environment/environment.go | 4 ++-- pkg/generic/http-chaos/environment/environment.go | 4 ++-- pkg/generic/network-chaos/environment/environment.go | 4 ++-- pkg/generic/pod-dns-chaos/environment/environment.go | 6 +++--- pkg/generic/stress-chaos/environment/environment.go | 6 +++--- 49 files changed, 64 insertions(+), 214 deletions(-) diff --git a/experiments/aws-ssm/aws-ssm-chaos-by-id/test/test.yml b/experiments/aws-ssm/aws-ssm-chaos-by-id/test/test.yml index eb051c068..b4389ea40 100644 --- a/experiments/aws-ssm/aws-ssm-chaos-by-id/test/test.yml +++ b/experiments/aws-ssm/aws-ssm-chaos-by-id/test/test.yml @@ -21,8 +21,6 @@ spec: - sleep - "3600" env: - - name: LIB - value: 'litmus' - name: EC2_INSTANCE_ID value: '' diff --git a/experiments/aws-ssm/aws-ssm-chaos-by-tag/test/test.yml b/experiments/aws-ssm/aws-ssm-chaos-by-tag/test/test.yml index f7a43af3c..87dbeb1c1 100644 --- a/experiments/aws-ssm/aws-ssm-chaos-by-tag/test/test.yml +++ b/experiments/aws-ssm/aws-ssm-chaos-by-tag/test/test.yml @@ -21,8 +21,6 @@ spec: - sleep - "3600" env: - - name: LIB - value: 'litmus' - name: EC2_INSTANCE_TAG value: '' diff --git a/experiments/azure/azure-disk-loss/test/test.yml b/experiments/azure/azure-disk-loss/test/test.yml index 06241148d..3573cf7f0 100644 --- a/experiments/azure/azure-disk-loss/test/test.yml +++ b/experiments/azure/azure-disk-loss/test/test.yml @@ -40,11 +40,6 @@ spec: - name: RAMP_TIME value: '' - ## env var that describes the library used to execute the chaos - ## default: litmus - - name: LIB - value: 'litmus' - # provide the chaos namespace - name: CHAOS_NAMESPACE value: 'litmus' diff --git a/experiments/azure/instance-stop/test/test.yml b/experiments/azure/instance-stop/test/test.yml index 27961dcb1..5cd264ff4 100644 --- a/experiments/azure/instance-stop/test/test.yml +++ b/experiments/azure/instance-stop/test/test.yml @@ -39,9 +39,6 @@ spec: - name: CHAOS_INTERVAL value: '30' - - - name: LIB - value: 'litmus' - name: CHAOS_NAMESPACE value: 'litmus' diff --git a/experiments/baremetal/redfish-node-restart/test/test.yml b/experiments/baremetal/redfish-node-restart/test/test.yml index 52f99cc6b..58363fccb 100644 --- a/experiments/baremetal/redfish-node-restart/test/test.yml +++ b/experiments/baremetal/redfish-node-restart/test/test.yml @@ -25,11 +25,6 @@ spec: - name: RAMP_TIME value: '' - ## env var that describes the library used to execute the chaos - ## default: litmus. - - name: LIB - value: 'litmus' - - name: AUXILIARY_APPINFO value: '' diff --git a/experiments/cassandra/pod-delete/test/test.yml b/experiments/cassandra/pod-delete/test/test.yml index 541774111..d5e355c40 100644 --- a/experiments/cassandra/pod-delete/test/test.yml +++ b/experiments/cassandra/pod-delete/test/test.yml @@ -63,9 +63,6 @@ spec: - name: FORCE value: 'true' - - name: LIB - value: 'litmus' - - name: CHAOS_NAMESPACE value: '' diff --git a/experiments/gcp/gcp-vm-disk-loss-by-label/test/test.yml b/experiments/gcp/gcp-vm-disk-loss-by-label/test/test.yml index 432e2487a..06525909f 100644 --- a/experiments/gcp/gcp-vm-disk-loss-by-label/test/test.yml +++ b/experiments/gcp/gcp-vm-disk-loss-by-label/test/test.yml @@ -32,11 +32,6 @@ spec: - name: RAMP_TIME value: '' - ## env var that describes the library used to execute the chaos - ## default: litmus. Supported values: litmus, powerfulseal, chaoskube - - name: LIB - value: '' - # provide the chaos namespace - name: CHAOS_NAMESPACE value: '' diff --git a/experiments/gcp/gcp-vm-disk-loss/test/test.yml b/experiments/gcp/gcp-vm-disk-loss/test/test.yml index ff3549822..d9bf7ea86 100644 --- a/experiments/gcp/gcp-vm-disk-loss/test/test.yml +++ b/experiments/gcp/gcp-vm-disk-loss/test/test.yml @@ -31,11 +31,6 @@ spec: - name: RAMP_TIME value: '' - ## env var that describes the library used to execute the chaos - ## default: litmus. Supported values: litmus, powerfulseal, chaoskube - - name: LIB - value: 'litmus' - # provide the chaos namespace - name: CHAOS_NAMESPACE value: 'default' diff --git a/experiments/gcp/gcp-vm-instance-stop-by-label/test/test.yml b/experiments/gcp/gcp-vm-instance-stop-by-label/test/test.yml index 356b393cb..944da4740 100644 --- a/experiments/gcp/gcp-vm-instance-stop-by-label/test/test.yml +++ b/experiments/gcp/gcp-vm-instance-stop-by-label/test/test.yml @@ -34,11 +34,6 @@ spec: - name: RAMP_TIME value: '' - ## env var that describes the library used to execute the chaos - ## default: litmus. Supported values: litmus, powerfulseal, chaoskube - - name: LIB - value: '' - # provide the chaos namespace - name: CHAOS_NAMESPACE value: '' diff --git a/experiments/gcp/gcp-vm-instance-stop/test/test.yml b/experiments/gcp/gcp-vm-instance-stop/test/test.yml index a71a64212..7c9cf2118 100644 --- a/experiments/gcp/gcp-vm-instance-stop/test/test.yml +++ b/experiments/gcp/gcp-vm-instance-stop/test/test.yml @@ -21,8 +21,6 @@ spec: - sleep - "3600" env: - - name: LIB - value: 'litmus' - name: GCP_PROJECT_ID value: '' diff --git a/experiments/generic/container-kill/test/test.yml b/experiments/generic/container-kill/test/test.yml index ac5d12bd2..309fabe0a 100644 --- a/experiments/generic/container-kill/test/test.yml +++ b/experiments/generic/container-kill/test/test.yml @@ -48,9 +48,6 @@ spec: - name: RAMP_TIME value: '' - - name: LIB - value: 'litmus' - # provide the container runtime path # applicable only for containerd and crio runtime - name: SOCKET_PATH @@ -58,9 +55,9 @@ spec: # provide the name of container runtime # it supports docker, containerd, crio - # default to docker + # defaults to containerd - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' ## percentage of total pods to target - name: PODS_AFFECTED_PERC diff --git a/experiments/generic/disk-fill/test/test.yml b/experiments/generic/disk-fill/test/test.yml index 5632968dc..056cca33e 100644 --- a/experiments/generic/disk-fill/test/test.yml +++ b/experiments/generic/disk-fill/test/test.yml @@ -36,9 +36,6 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' - - name: LIB - value: 'litmus' - - name: TARGET_POD value: '' diff --git a/experiments/generic/docker-service-kill/test/test.yml b/experiments/generic/docker-service-kill/test/test.yml index 73616f828..6efbf8533 100644 --- a/experiments/generic/docker-service-kill/test/test.yml +++ b/experiments/generic/docker-service-kill/test/test.yml @@ -45,11 +45,6 @@ spec: - name: RAMP_TIME value: "" - ## env var that describes the library used to execute the chaos - ## default: litmus. Supported values: litmus, powerfulseal, chaoskube - - name: LIB - value: "" - # provide the chaos namespace - name: CHAOS_NAMESPACE value: "" diff --git a/experiments/generic/kubelet-service-kill/test/test.yml b/experiments/generic/kubelet-service-kill/test/test.yml index f35359c7f..39a32f31b 100644 --- a/experiments/generic/kubelet-service-kill/test/test.yml +++ b/experiments/generic/kubelet-service-kill/test/test.yml @@ -39,9 +39,6 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' - - name: LIB - value: 'litmus' - - name: CHAOS_NAMESPACE value: 'default' diff --git a/experiments/generic/node-cpu-hog/test/test.yml b/experiments/generic/node-cpu-hog/test/test.yml index 15017d830..4fc8fe75a 100644 --- a/experiments/generic/node-cpu-hog/test/test.yml +++ b/experiments/generic/node-cpu-hog/test/test.yml @@ -42,9 +42,6 @@ spec: - name: NODE_CPU_CORE value: '1' - - name: LIB - value: 'litmus' - - name: LIB_IMAGE value: 'litmuschaos/go-runner:ci' diff --git a/experiments/generic/node-drain/test/test.yml b/experiments/generic/node-drain/test/test.yml index ca49f2445..6403bc5d4 100644 --- a/experiments/generic/node-drain/test/test.yml +++ b/experiments/generic/node-drain/test/test.yml @@ -39,9 +39,6 @@ spec: - name: TOTAL_CHAOS_DURATION value: '60' - - name: LIB - value: 'litmus' - - name: CHAOS_NAMESPACE value: 'default' diff --git a/experiments/generic/node-io-stress/test/test.yml b/experiments/generic/node-io-stress/test/test.yml index 7c8f78655..03a8ef01c 100644 --- a/experiments/generic/node-io-stress/test/test.yml +++ b/experiments/generic/node-io-stress/test/test.yml @@ -45,9 +45,6 @@ spec: - name: NUMBER_OF_WORKERS value: '4' - - name: LIB - value: 'litmus' - - name: LIB_IMAGE value: 'litmuschaos/go-runner:ci' diff --git a/experiments/generic/node-memory-hog/test/test.yml b/experiments/generic/node-memory-hog/test/test.yml index c977d770b..63bf49533 100644 --- a/experiments/generic/node-memory-hog/test/test.yml +++ b/experiments/generic/node-memory-hog/test/test.yml @@ -41,10 +41,7 @@ spec: # in MB - name: MEMORY_PERCENTAGE - value: '500' - - - name: LIB - value: 'litmus' + value: '500' - name: LIB_IMAGE value: 'litmuschaos/go-runner:ci' diff --git a/experiments/generic/node-restart/test/test.yml b/experiments/generic/node-restart/test/test.yml index 89f125238..75b89cf1f 100644 --- a/experiments/generic/node-restart/test/test.yml +++ b/experiments/generic/node-restart/test/test.yml @@ -37,10 +37,7 @@ spec: value: '60' - name: CHAOS_INTERVAL - value: '10' - - - name: LIB - value: 'litmus' + value: '10' - name: LIB_IMAGE value: 'litmuschaos/go-runner:ci' diff --git a/experiments/generic/node-taint/test/test.yml b/experiments/generic/node-taint/test/test.yml index 215c59c9a..968ae4b28 100644 --- a/experiments/generic/node-taint/test/test.yml +++ b/experiments/generic/node-taint/test/test.yml @@ -40,10 +40,7 @@ spec: value: '' - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: CHAOS_NAMESPACE value: 'default' diff --git a/experiments/generic/pod-autoscaler/test/test.yml b/experiments/generic/pod-autoscaler/test/test.yml index 2ee838ed7..f9f2f8630 100644 --- a/experiments/generic/pod-autoscaler/test/test.yml +++ b/experiments/generic/pod-autoscaler/test/test.yml @@ -46,11 +46,6 @@ spec: - name: RAMP_TIME value: '' - ## env var that describes the library used to execute the chaos - ## Only supported litmus - - name: LIB - value: 'litmus' - - name: CHAOS_SERVICE_ACCOUNT valueFrom: fieldRef: diff --git a/experiments/generic/pod-cpu-hog-exec/test/test.yml b/experiments/generic/pod-cpu-hog-exec/test/test.yml index 740c3e3b3..4002552bc 100644 --- a/experiments/generic/pod-cpu-hog-exec/test/test.yml +++ b/experiments/generic/pod-cpu-hog-exec/test/test.yml @@ -41,10 +41,7 @@ spec: ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '100' - - - name: LIB - value: 'litmus' + value: '100' - name: TARGET_POD value: '' diff --git a/experiments/generic/pod-cpu-hog/test/test.yml b/experiments/generic/pod-cpu-hog/test/test.yml index 740c3e3b3..4002552bc 100644 --- a/experiments/generic/pod-cpu-hog/test/test.yml +++ b/experiments/generic/pod-cpu-hog/test/test.yml @@ -41,10 +41,7 @@ spec: ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '100' - - - name: LIB - value: 'litmus' + value: '100' - name: TARGET_POD value: '' diff --git a/experiments/generic/pod-delete/test/test.yml b/experiments/generic/pod-delete/test/test.yml index b21fcdfe8..e77b5fa2a 100644 --- a/experiments/generic/pod-delete/test/test.yml +++ b/experiments/generic/pod-delete/test/test.yml @@ -37,10 +37,7 @@ spec: value: '10' - name: FORCE - value: '' - - - name: LIB - value: 'litmus' + value: '' - name: TARGET_POD value: '' diff --git a/experiments/generic/pod-dns-error/test/test.yml b/experiments/generic/pod-dns-error/test/test.yml index 5aaa7e504..5bdb7fdbc 100644 --- a/experiments/generic/pod-dns-error/test/test.yml +++ b/experiments/generic/pod-dns-error/test/test.yml @@ -44,10 +44,7 @@ spec: # in sec - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: TARGET_PODS value: '' @@ -68,13 +65,13 @@ spec: # provide the name of container runtime # it supports docker, containerd, crio - # default to docker + # defaults to containerd - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the container runtime path - name: SOCKET_PATH - value: '/var/run/docker.sock' + value: '/run/containerd/containerd.sock' - name: CHAOS_SERVICE_ACCOUNT valueFrom: diff --git a/experiments/generic/pod-dns-spoof/test/test.yml b/experiments/generic/pod-dns-spoof/test/test.yml index b60955916..1fef36bb3 100644 --- a/experiments/generic/pod-dns-spoof/test/test.yml +++ b/experiments/generic/pod-dns-spoof/test/test.yml @@ -40,10 +40,7 @@ spec: # in sec - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: TARGET_PODS value: '' @@ -64,13 +61,13 @@ spec: # provide the name of container runtime # it supports docker, containerd, crio - # default to docker + # defaults to containerd - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the container runtime path - name: SOCKET_PATH - value: '/var/run/docker.sock' + value: '/run/containerd/containerd.sock' - name: CHAOS_SERVICE_ACCOUNT valueFrom: diff --git a/experiments/generic/pod-fio-stress/test/test.yml b/experiments/generic/pod-fio-stress/test/test.yml index 5f3a8a934..56cb88b2c 100644 --- a/experiments/generic/pod-fio-stress/test/test.yml +++ b/experiments/generic/pod-fio-stress/test/test.yml @@ -38,10 +38,7 @@ spec: ## Period to wait before injection of chaos in sec - name: RAMP_TIME - value: '' - - - name: LIB - value: 'litmus' + value: '' # provide the chaos namespace - name: CHAOS_NAMESPACE diff --git a/experiments/generic/pod-http-latency/test/test.yaml b/experiments/generic/pod-http-latency/test/test.yaml index d65144375..44ad92578 100644 --- a/experiments/generic/pod-http-latency/test/test.yaml +++ b/experiments/generic/pod-http-latency/test/test.yaml @@ -67,10 +67,6 @@ spec: - name: RAMP_TIME value: '' - # lib can be litmus or pumba - - name: LIB - value: 'litmus' - ## percentage of total pods to target - name: PODS_AFFECTED_PERC value: '' @@ -79,14 +75,13 @@ spec: value: '' # provide the name of container runtime - # for litmus LIB, it supports docker, containerd, crio - # for pumba LIB, it supports docker only + # it supports docker, containerd, and crio - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the socket file path - name: SOCKET_PATH - value: '/var/run/docker.sock' + value: '/run/containerd/containerd.sock' # To select pods on specific node(s) - name: NODE_LABEL diff --git a/experiments/generic/pod-http-modify-body/test/test.yml b/experiments/generic/pod-http-modify-body/test/test.yml index d89ce20fa..858d3f92b 100644 --- a/experiments/generic/pod-http-modify-body/test/test.yml +++ b/experiments/generic/pod-http-modify-body/test/test.yml @@ -59,10 +59,6 @@ spec: - name: RAMP_TIME value: '' - # lib can be litmus or pumba - - name: LIB - value: 'litmus' - ## percentage of total pods to target - name: PODS_AFFECTED_PERC value: '' @@ -71,14 +67,13 @@ spec: value: '' # provide the name of container runtime - # for litmus LIB, it supports docker, containerd, crio - # for pumba LIB, it supports docker only + # it supports docker, containerd, and crio - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the socket file path - name: SOCKET_PATH - value: '/var/run/docker.sock' + value: '/run/containerd/containerd.sock' # To select pods on specific node(s) - name: NODE_LABEL diff --git a/experiments/generic/pod-http-modify-header/test/test.yaml b/experiments/generic/pod-http-modify-header/test/test.yaml index 7503b95b3..03b3851a8 100644 --- a/experiments/generic/pod-http-modify-header/test/test.yaml +++ b/experiments/generic/pod-http-modify-header/test/test.yaml @@ -64,10 +64,6 @@ spec: - name: RAMP_TIME value: '' - # lib can be litmus or pumba - - name: LIB - value: 'litmus' - ## percentage of total pods to target - name: PODS_AFFECTED_PERC value: '' @@ -76,14 +72,13 @@ spec: value: '' # provide the name of container runtime - # for litmus LIB, it supports docker, containerd, crio - # for pumba LIB, it supports docker only + # it supports docker, containerd, and crio - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the socket file path - name: SOCKET_PATH - value: '/var/run/docker.sock' + value: '/run/containerd/containerd.sock' # To select pods on specific node(s) - name: NODE_LABEL diff --git a/experiments/generic/pod-http-reset-peer/test/test.yml b/experiments/generic/pod-http-reset-peer/test/test.yml index 2e7f1e7ed..99bfd08f3 100644 --- a/experiments/generic/pod-http-reset-peer/test/test.yml +++ b/experiments/generic/pod-http-reset-peer/test/test.yml @@ -62,10 +62,6 @@ spec: - name: PROXY_PORT value: "2002" - # lib can be litmus or pumba - - name: LIB - value: 'litmus' - ## percentage of total pods to target - name: PODS_AFFECTED_PERC value: '' @@ -74,14 +70,13 @@ spec: value: '' # provide the name of container runtime - # for litmus LIB, it supports docker, containerd, crio - # for pumba LIB, it supports docker only + # it supports docker, containerd, and crio - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the socket file path - name: SOCKET_PATH - value: '/var/run/docker.sock' + value: '/run/containerd/containerd.sock' # To select pods on specific node(s) - name: NODE_LABEL diff --git a/experiments/generic/pod-http-status-code/test/test.yml b/experiments/generic/pod-http-status-code/test/test.yml index 6950e1d4e..37175b4d8 100644 --- a/experiments/generic/pod-http-status-code/test/test.yml +++ b/experiments/generic/pod-http-status-code/test/test.yml @@ -63,10 +63,6 @@ spec: - name: RAMP_TIME value: '' - # lib can be litmus or pumba - - name: LIB - value: 'litmus' - ## percentage of total pods to target - name: PODS_AFFECTED_PERC value: '' @@ -75,14 +71,13 @@ spec: value: '' # provide the name of container runtime - # for litmus LIB, it supports docker, containerd, crio - # for pumba LIB, it supports docker only + # it supports docker, containerd, and crio - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the socket file path - name: SOCKET_PATH - value: '/var/run/docker.sock' + value: '/run/containerd/containerd.sock' # To select pods on specific node(s) - name: NODE_LABEL diff --git a/experiments/generic/pod-io-stress/test/test.yml b/experiments/generic/pod-io-stress/test/test.yml index 66cf8cc0c..51d6427d8 100644 --- a/experiments/generic/pod-io-stress/test/test.yml +++ b/experiments/generic/pod-io-stress/test/test.yml @@ -44,10 +44,7 @@ spec: ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '100' - - - name: LIB - value: 'litmus' + value: '100' - name: TARGET_POD value: '' diff --git a/experiments/generic/pod-memory-hog-exec/test/test.yml b/experiments/generic/pod-memory-hog-exec/test/test.yml index a8db1d0ec..06f8647ae 100644 --- a/experiments/generic/pod-memory-hog-exec/test/test.yml +++ b/experiments/generic/pod-memory-hog-exec/test/test.yml @@ -41,10 +41,7 @@ spec: ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '100' - - - name: LIB - value: 'litmus' + value: '100' - name: TARGET_POD value: '' diff --git a/experiments/generic/pod-memory-hog/test/test.yml b/experiments/generic/pod-memory-hog/test/test.yml index a8db1d0ec..06f8647ae 100644 --- a/experiments/generic/pod-memory-hog/test/test.yml +++ b/experiments/generic/pod-memory-hog/test/test.yml @@ -41,10 +41,7 @@ spec: ## Percentage of total pods to target - name: PODS_AFFECTED_PERC - value: '100' - - - name: LIB - value: 'litmus' + value: '100' - name: TARGET_POD value: '' diff --git a/experiments/generic/pod-network-corruption/test/test.yml b/experiments/generic/pod-network-corruption/test/test.yml index 02cad706a..1fc6b6b97 100644 --- a/experiments/generic/pod-network-corruption/test/test.yml +++ b/experiments/generic/pod-network-corruption/test/test.yml @@ -43,10 +43,7 @@ spec: value: '100' - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: TARGET_POD value: '' @@ -66,9 +63,9 @@ spec: # provide the name of container runtime # it supports docker, containerd, crio - # default to docker + # defaults to containerd - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the container runtime path # applicable only for containerd and crio runtime diff --git a/experiments/generic/pod-network-duplication/test/test.yml b/experiments/generic/pod-network-duplication/test/test.yml index 9d871d4a5..faadb5d5e 100644 --- a/experiments/generic/pod-network-duplication/test/test.yml +++ b/experiments/generic/pod-network-duplication/test/test.yml @@ -43,10 +43,7 @@ spec: value: '100' - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: TARGET_POD value: '' @@ -66,9 +63,9 @@ spec: # provide the name of container runtime # it supports docker, containerd, crio - # default to docker + # defaults to containerd - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the container runtime path # applicable only for containerd and crio runtime diff --git a/experiments/generic/pod-network-latency/test/test.yml b/experiments/generic/pod-network-latency/test/test.yml index d7236ef4e..08b7b9615 100644 --- a/experiments/generic/pod-network-latency/test/test.yml +++ b/experiments/generic/pod-network-latency/test/test.yml @@ -46,10 +46,7 @@ spec: # in sec - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: TARGET_POD value: '' @@ -70,9 +67,9 @@ spec: # provide the name of container runtime # it supports docker, containerd, crio - # default to docker + # defaults to containerd - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the container runtime path # applicable only for containerd and crio runtime diff --git a/experiments/generic/pod-network-loss/test/test.yml b/experiments/generic/pod-network-loss/test/test.yml index d56fc2aec..28f88ff95 100644 --- a/experiments/generic/pod-network-loss/test/test.yml +++ b/experiments/generic/pod-network-loss/test/test.yml @@ -43,10 +43,7 @@ spec: value: '100' - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: TARGET_POD value: '' @@ -66,9 +63,9 @@ spec: # provide the name of container runtime # it supports docker, containerd, crio - # default to docker + # defaults to containerd - name: CONTAINER_RUNTIME - value: 'docker' + value: 'containerd' # provide the container runtime path # applicable only for containerd and crio runtime diff --git a/experiments/kube-aws/ebs-loss-by-id/test/test.yml b/experiments/kube-aws/ebs-loss-by-id/test/test.yml index bd8922f2e..bcf4b9e82 100644 --- a/experiments/kube-aws/ebs-loss-by-id/test/test.yml +++ b/experiments/kube-aws/ebs-loss-by-id/test/test.yml @@ -31,10 +31,7 @@ spec: value: 'deployment' - name: TOTAL_CHAOS_DURATION - value: '60' - - - name: LIB - value: 'litmus' + value: '60' - name: EC2_INSTANCE_ID value: '' diff --git a/experiments/kube-aws/ebs-loss-by-tag/test/test.yml b/experiments/kube-aws/ebs-loss-by-tag/test/test.yml index 418767e77..ab2b7f273 100644 --- a/experiments/kube-aws/ebs-loss-by-tag/test/test.yml +++ b/experiments/kube-aws/ebs-loss-by-tag/test/test.yml @@ -34,10 +34,7 @@ spec: value: '30' - name: CHOAS_INTERVAL - value: '30' - - - name: LIB - value: 'litmus' + value: '30' - name: EBS_VOLUME_TAG value: '' diff --git a/experiments/kube-aws/ec2-terminate-by-id/test/test.yml b/experiments/kube-aws/ec2-terminate-by-id/test/test.yml index ab416369b..bfbd7e36f 100644 --- a/experiments/kube-aws/ec2-terminate-by-id/test/test.yml +++ b/experiments/kube-aws/ec2-terminate-by-id/test/test.yml @@ -21,9 +21,6 @@ spec: - sleep - "3600" env: - - name: LIB - value: 'litmus' - - name: EC2_INSTANCE_ID value: '' diff --git a/experiments/kube-aws/ec2-terminate-by-tag/test/test.yml b/experiments/kube-aws/ec2-terminate-by-tag/test/test.yml index dc09ffac9..a646b993a 100644 --- a/experiments/kube-aws/ec2-terminate-by-tag/test/test.yml +++ b/experiments/kube-aws/ec2-terminate-by-tag/test/test.yml @@ -21,9 +21,6 @@ spec: - sleep - "3600" env: - - name: LIB - value: 'litmus' - # value: key:value ex: team:devops - name: INSTANCE_TAG value: '' diff --git a/pkg/generic/container-kill/environment/environment.go b/pkg/generic/container-kill/environment/environment.go index b3b3f1529..bf2f9d2ae 100644 --- a/pkg/generic/container-kill/environment/environment.go +++ b/pkg/generic/container-kill/environment/environment.go @@ -9,7 +9,7 @@ import ( "github.com/litmuschaos/litmus-go/pkg/types" ) -//GetENV fetches all the env variables from the runner pod +// GetENV fetches all the env variables from the runner pod func GetENV(experimentDetails *experimentTypes.ExperimentDetails) { experimentDetails.ExperimentName = types.Getenv("EXPERIMENT_NAME", "container-kill") experimentDetails.ChaosNamespace = types.Getenv("CHAOS_NAMESPACE", "") @@ -24,12 +24,12 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails) { experimentDetails.LIBImage = types.Getenv("LIB_IMAGE", "litmuschaos/go-runner:latest") experimentDetails.LIBImagePullPolicy = types.Getenv("LIB_IMAGE_PULL_POLICY", "Always") experimentDetails.TargetContainer = types.Getenv("TARGET_CONTAINER", "") - experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/var/run/docker.sock") + experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/run/containerd/containerd.sock") experimentDetails.PodsAffectedPerc = types.Getenv("PODS_AFFECTED_PERC", "0") experimentDetails.Delay, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_DELAY", "2")) experimentDetails.Timeout, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_TIMEOUT", "180")) experimentDetails.TargetPods = types.Getenv("TARGET_PODS", "") - experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "docker") + experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "containerd") experimentDetails.Sequence = types.Getenv("SEQUENCE", "parallel") experimentDetails.Signal = types.Getenv("SIGNAL", "SIGKILL") experimentDetails.TerminationGracePeriodSeconds, _ = strconv.Atoi(types.Getenv("TERMINATION_GRACE_PERIOD_SECONDS", "")) diff --git a/pkg/generic/disk-fill/environment/environment.go b/pkg/generic/disk-fill/environment/environment.go index e490648dc..07f25c1fd 100644 --- a/pkg/generic/disk-fill/environment/environment.go +++ b/pkg/generic/disk-fill/environment/environment.go @@ -20,8 +20,8 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails) { experimentDetails.InstanceID = types.Getenv("INSTANCE_ID", "") experimentDetails.ChaosPodName = types.Getenv("POD_NAME", "") experimentDetails.TargetContainer = types.Getenv("TARGET_CONTAINER", "") - experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "docker") - experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/var/run/docker.sock") + experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "containerd") + experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/run/containerd/containerd.sock") experimentDetails.FillPercentage = types.Getenv("FILL_PERCENTAGE", "80") experimentDetails.Delay, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_DELAY", "2")) experimentDetails.Timeout, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_TIMEOUT", "180")) diff --git a/pkg/generic/http-chaos/environment/environment.go b/pkg/generic/http-chaos/environment/environment.go index 1685e3920..35c5ae960 100644 --- a/pkg/generic/http-chaos/environment/environment.go +++ b/pkg/generic/http-chaos/environment/environment.go @@ -27,9 +27,9 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails, expName string experimentDetails.PodsAffectedPerc = types.Getenv("PODS_AFFECTED_PERC", "0") experimentDetails.NodeLabel = types.Getenv("NODE_LABEL", "") experimentDetails.TerminationGracePeriodSeconds, _ = strconv.Atoi(types.Getenv("TERMINATION_GRACE_PERIOD_SECONDS", "")) - experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "docker") + experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "containerd") experimentDetails.ChaosServiceAccount = types.Getenv("CHAOS_SERVICE_ACCOUNT", "") - experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/var/run/docker.sock") + experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/run/containerd/containerd.sock") experimentDetails.SetHelperData = types.Getenv("SET_HELPER_DATA", "true") experimentDetails.Sequence = types.Getenv("SEQUENCE", "parallel") experimentDetails.NetworkInterface = types.Getenv("NETWORK_INTERFACE", "eth0") diff --git a/pkg/generic/network-chaos/environment/environment.go b/pkg/generic/network-chaos/environment/environment.go index d98ef50c4..7ed1c0c37 100644 --- a/pkg/generic/network-chaos/environment/environment.go +++ b/pkg/generic/network-chaos/environment/environment.go @@ -29,9 +29,9 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails, expName string experimentDetails.NodeLabel = types.Getenv("NODE_LABEL", "") experimentDetails.DestinationIPs = types.Getenv("DESTINATION_IPS", "") experimentDetails.DestinationHosts = types.Getenv("DESTINATION_HOSTS", "") - experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "docker") + experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "containerd") experimentDetails.ChaosServiceAccount = types.Getenv("CHAOS_SERVICE_ACCOUNT", "") - experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/var/run/docker.sock") + experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/run/containerd/containerd.sock") experimentDetails.Sequence = types.Getenv("SEQUENCE", "parallel") experimentDetails.TerminationGracePeriodSeconds, _ = strconv.Atoi(types.Getenv("TERMINATION_GRACE_PERIOD_SECONDS", "")) experimentDetails.SetHelperData = types.Getenv("SET_HELPER_DATA", "true") diff --git a/pkg/generic/pod-dns-chaos/environment/environment.go b/pkg/generic/pod-dns-chaos/environment/environment.go index a652c4c9b..743c1b946 100644 --- a/pkg/generic/pod-dns-chaos/environment/environment.go +++ b/pkg/generic/pod-dns-chaos/environment/environment.go @@ -18,7 +18,7 @@ const ( Spoof DNSChaosType = "spoof" ) -//GetENV fetches all the env variables from the runner pod +// GetENV fetches all the env variables from the runner pod func GetENV(experimentDetails *experimentTypes.ExperimentDetails, expType DNSChaosType) { experimentDetails.ChaosNamespace = types.Getenv("CHAOS_NAMESPACE", "litmus") experimentDetails.EngineName = types.Getenv("CHAOSENGINE", "") @@ -34,8 +34,8 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails, expType DNSCha experimentDetails.Timeout, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_TIMEOUT", "180")) experimentDetails.TargetPods = types.Getenv("TARGET_PODS", "") experimentDetails.PodsAffectedPerc, _ = strconv.Atoi(types.Getenv("PODS_AFFECTED_PERC", "0")) - experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "docker") - experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/var/run/docker.sock") + experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "containerd") + experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/run/containerd/containerd.sock") experimentDetails.ChaosServiceAccount = types.Getenv("CHAOS_SERVICE_ACCOUNT", "") experimentDetails.Sequence = types.Getenv("SEQUENCE", "parallel") experimentDetails.SetHelperData = types.Getenv("SET_HELPER_DATA", "true") diff --git a/pkg/generic/stress-chaos/environment/environment.go b/pkg/generic/stress-chaos/environment/environment.go index 28ef58d5a..5622b9076 100644 --- a/pkg/generic/stress-chaos/environment/environment.go +++ b/pkg/generic/stress-chaos/environment/environment.go @@ -8,7 +8,7 @@ import ( clientTypes "k8s.io/apimachinery/pkg/types" ) -//GetENV fetches all the env variables from the runner pod +// GetENV fetches all the env variables from the runner pod func GetENV(experimentDetails *experimentTypes.ExperimentDetails, expName string) { experimentDetails.ExperimentName = types.Getenv("EXPERIMENT_NAME", "") experimentDetails.ChaosNamespace = types.Getenv("CHAOS_NAMESPACE", "litmus") @@ -25,9 +25,9 @@ func GetENV(experimentDetails *experimentTypes.ExperimentDetails, expName string experimentDetails.Timeout, _ = strconv.Atoi(types.Getenv("STATUS_CHECK_TIMEOUT", "180")) experimentDetails.TargetPods = types.Getenv("TARGET_PODS", "") experimentDetails.PodsAffectedPerc = types.Getenv("PODS_AFFECTED_PERC", "0") - experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "docker") + experimentDetails.ContainerRuntime = types.Getenv("CONTAINER_RUNTIME", "containerd") experimentDetails.ChaosServiceAccount = types.Getenv("CHAOS_SERVICE_ACCOUNT", "") - experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/var/run/docker.sock") + experimentDetails.SocketPath = types.Getenv("SOCKET_PATH", "/run/containerd/containerd.sock") experimentDetails.Sequence = types.Getenv("SEQUENCE", "parallel") experimentDetails.TerminationGracePeriodSeconds, _ = strconv.Atoi(types.Getenv("TERMINATION_GRACE_PERIOD_SECONDS", "")) experimentDetails.NodeLabel = types.Getenv("NODE_LABEL", "")