Changed container path to socket path and runtime (#591)

Signed-off-by: avaakash <as86414@gmail.com>
This commit is contained in:
Akash Shrivastava
2023-03-01 21:07:24 +05:30
committed by GitHub
parent a6d3bc647b
commit df22a472d6
4 changed files with 44 additions and 32 deletions

View File

@@ -6,7 +6,7 @@ metadata:
spec: spec:
# It can be active/stop # It can be active/stop
engineState: 'active' engineState: 'active'
#ex. values: ns1:name=percona,ns2:run=nginx #ex. values: ns1:name=percona,ns2:run=nginx
auxiliaryAppInfo: '' auxiliaryAppInfo: ''
appinfo: appinfo:
appns: 'default' appns: 'default'
@@ -19,7 +19,7 @@ spec:
components: components:
env: env:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' value: '60'
# specify the fill percentage according to the disk pressure required # specify the fill percentage according to the disk pressure required
- name: FILL_PERCENTAGE - name: FILL_PERCENTAGE
@@ -28,7 +28,10 @@ spec:
- name: PODS_AFFECTED_PERC - name: PODS_AFFECTED_PERC
value: '' value: ''
# Provide the container runtime path # provide the name of container runtime, it supports docker, containerd, crio
# Default set to docker container path - name: CONTAINER_RUNTIME
- name: CONTAINER_PATH value: 'containerd'
value: '/var/lib/docker/containers'
# provide the socket file path
- name: SOCKET_PATH
value: '/run/containerd/containerd.sock'

View File

@@ -13,7 +13,7 @@ metadata:
spec: spec:
definition: definition:
scope: Namespaced scope: Namespaced
permissions: permissions:
# Create and monitor the experiment & helper pods # Create and monitor the experiment & helper pods
- apiGroups: [""] - apiGroups: [""]
resources: ["pods"] resources: ["pods"]
@@ -26,10 +26,10 @@ spec:
- apiGroups: [""] - apiGroups: [""]
resources: ["configmaps"] resources: ["configmaps"]
verbs: ["get","list",] verbs: ["get","list",]
# Track and get the runner, experiment, and helper pods log # Track and get the runner, experiment, and helper pods log
- apiGroups: [""] - apiGroups: [""]
resources: ["pods/log"] resources: ["pods/log"]
verbs: ["get","list","watch"] verbs: ["get","list","watch"]
# for creating and managing to execute comands inside target container # for creating and managing to execute comands inside target container
- apiGroups: [""] - apiGroups: [""]
resources: ["pods/exec"] resources: ["pods/exec"]
@@ -38,7 +38,7 @@ spec:
- apiGroups: ["apps"] - apiGroups: ["apps"]
resources: ["deployments","statefulsets","replicasets", "daemonsets"] resources: ["deployments","statefulsets","replicasets", "daemonsets"]
verbs: ["list","get"] verbs: ["list","get"]
# deriving the parent/owner details of the pod(if parent is deploymentConfig) # deriving the parent/owner details of the pod(if parent is deploymentConfig)
- apiGroups: ["apps.openshift.io"] - apiGroups: ["apps.openshift.io"]
resources: ["deploymentconfigs"] resources: ["deploymentconfigs"]
verbs: ["list","get"] verbs: ["list","get"]
@@ -69,7 +69,7 @@ spec:
- name: TARGET_CONTAINER - name: TARGET_CONTAINER
value: '' value: ''
- name: FILL_PERCENTAGE - name: FILL_PERCENTAGE
value: '80' value: '80'
@@ -102,10 +102,13 @@ spec:
- name: LIB_IMAGE - name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest' value: 'litmuschaos/go-runner:latest'
# Provide the container runtime path # provide the name of container runtime, it supports docker, containerd, crio
# Default set to docker container path - name: CONTAINER_RUNTIME
- name: CONTAINER_PATH value: 'containerd'
value: '/var/lib/docker/containers'
# provide the socket file path
- name: SOCKET_PATH
value: '/run/containerd/containerd.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
@@ -116,5 +119,5 @@ spec:
name: disk-fill name: disk-fill
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job app.kubernetes.io/component: experiment-job
app.kubernetes.io/host-path-usage: "true" app.kubernetes.io/host-path-usage: "true"
app.kubernetes.io/version: latest app.kubernetes.io/version: latest

View File

@@ -6,7 +6,7 @@ metadata:
spec: spec:
# It can be active/stop # It can be active/stop
engineState: 'active' engineState: 'active'
#ex. values: ns1:name=percona,ns2:run=nginx #ex. values: ns1:name=percona,ns2:run=nginx
auxiliaryAppInfo: '' auxiliaryAppInfo: ''
appinfo: appinfo:
appns: 'default' appns: 'default'
@@ -19,7 +19,7 @@ spec:
components: components:
env: env:
- name: TOTAL_CHAOS_DURATION - name: TOTAL_CHAOS_DURATION
value: '60' value: '60'
# specify the fill percentage according to the disk pressure required # specify the fill percentage according to the disk pressure required
- name: FILL_PERCENTAGE - name: FILL_PERCENTAGE
@@ -28,7 +28,10 @@ spec:
- name: PODS_AFFECTED_PERC - name: PODS_AFFECTED_PERC
value: '' value: ''
# Provide the container runtime path # provide the name of container runtime, it supports docker, containerd, crio
# Default set to docker container path - name: CONTAINER_RUNTIME
- name: CONTAINER_PATH value: 'containerd'
value: '/var/lib/docker/containers'
# provide the socket file path
- name: SOCKET_PATH
value: '/run/containerd/containerd.sock'

View File

@@ -13,7 +13,7 @@ metadata:
spec: spec:
definition: definition:
scope: Namespaced scope: Namespaced
permissions: permissions:
# Create and monitor the experiment & helper pods # Create and monitor the experiment & helper pods
- apiGroups: [""] - apiGroups: [""]
resources: ["pods"] resources: ["pods"]
@@ -26,10 +26,10 @@ spec:
- apiGroups: [""] - apiGroups: [""]
resources: ["configmaps"] resources: ["configmaps"]
verbs: ["get","list",] verbs: ["get","list",]
# Track and get the runner, experiment, and helper pods log # Track and get the runner, experiment, and helper pods log
- apiGroups: [""] - apiGroups: [""]
resources: ["pods/log"] resources: ["pods/log"]
verbs: ["get","list","watch"] verbs: ["get","list","watch"]
# for creating and managing to execute comands inside target container # for creating and managing to execute comands inside target container
- apiGroups: [""] - apiGroups: [""]
resources: ["pods/exec"] resources: ["pods/exec"]
@@ -38,7 +38,7 @@ spec:
- apiGroups: ["apps"] - apiGroups: ["apps"]
resources: ["deployments","statefulsets","replicasets", "daemonsets"] resources: ["deployments","statefulsets","replicasets", "daemonsets"]
verbs: ["list","get"] verbs: ["list","get"]
# deriving the parent/owner details of the pod(if parent is deploymentConfig) # deriving the parent/owner details of the pod(if parent is deploymentConfig)
- apiGroups: ["apps.openshift.io"] - apiGroups: ["apps.openshift.io"]
resources: ["deploymentconfigs"] resources: ["deploymentconfigs"]
verbs: ["list","get"] verbs: ["list","get"]
@@ -69,7 +69,7 @@ spec:
- name: TARGET_CONTAINER - name: TARGET_CONTAINER
value: '' value: ''
- name: FILL_PERCENTAGE - name: FILL_PERCENTAGE
value: '80' value: '80'
@@ -107,10 +107,13 @@ spec:
- name: LIB_IMAGE - name: LIB_IMAGE
value: 'litmuschaos/go-runner:latest' value: 'litmuschaos/go-runner:latest'
# Provide the container runtime path # provide the name of container runtime, it supports docker, containerd, crio
# Default set to docker container path - name: CONTAINER_RUNTIME
- name: CONTAINER_PATH value: 'containerd'
value: '/var/lib/docker/containers'
# provide the socket file path
- name: SOCKET_PATH
value: '/run/containerd/containerd.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
@@ -121,5 +124,5 @@ spec:
name: disk-fill name: disk-fill
app.kubernetes.io/part-of: litmus app.kubernetes.io/part-of: litmus
app.kubernetes.io/component: experiment-job app.kubernetes.io/component: experiment-job
app.kubernetes.io/host-path-usage: "true" app.kubernetes.io/host-path-usage: "true"
app.kubernetes.io/version: latest app.kubernetes.io/version: latest