From 962cb073e74d0b6e02074e1bd7b453eb15357321 Mon Sep 17 00:00:00 2001 From: Shubham Chaudhary Date: Mon, 15 Apr 2024 13:07:27 +0530 Subject: [PATCH] fix(disk-fill): Add the container runtime and socketPath env (#628) Signed-off-by: Shubham Chaudhary --- faults/kubernetes/disk-fill/engine.yaml | 12 ++++++++---- faults/kubernetes/disk-fill/fault.yaml | 12 ++++++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/faults/kubernetes/disk-fill/engine.yaml b/faults/kubernetes/disk-fill/engine.yaml index d4ad97d0c..dda2643f4 100644 --- a/faults/kubernetes/disk-fill/engine.yaml +++ b/faults/kubernetes/disk-fill/engine.yaml @@ -29,8 +29,12 @@ spec: - name: PODS_AFFECTED_PERC value: '' - # Provide the container runtime path - # Default set to docker container path - - name: CONTAINER_PATH - value: '/var/lib/docker/containers' + # provide the socket file path + - name: SOCKET_PATH + value: "/run/containerd/containerd.sock" + + # provide the name of container runtime + # it supports docker, containerd, crio + - name: CONTAINER_RUNTIME + value: "containerd" diff --git a/faults/kubernetes/disk-fill/fault.yaml b/faults/kubernetes/disk-fill/fault.yaml index acd7e2afe..f33c9d7ef 100644 --- a/faults/kubernetes/disk-fill/fault.yaml +++ b/faults/kubernetes/disk-fill/fault.yaml @@ -114,10 +114,14 @@ spec: - name: LIB_IMAGE value: "litmuschaos.docker.scarf.sh/litmuschaos/go-runner:3.6.0" - # Provide the container runtime path - # Default set to docker container path - - name: CONTAINER_PATH - value: "/var/lib/docker/containers" + # provide the socket file path + - name: SOCKET_PATH + value: "/run/containerd/containerd.sock" + + # provide the name of container runtime + # it supports docker, containerd, crio + - name: CONTAINER_RUNTIME + value: "containerd" ## it defines the sequence of chaos execution for multiple target pods ## supported values: serial, parallel