Skip to content

Commit

Permalink
fix: fixed scope
Browse files Browse the repository at this point in the history
Signed-off-by: namkyu1999 <lak9348@konkuk.ac.kr>
  • Loading branch information
namkyu1999 committed Feb 16, 2024
1 parent 49b73b7 commit e5317cc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 7 deletions.
14 changes: 12 additions & 2 deletions faults/load/experiments.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
app.kubernetes.io/version: ci
spec:
definition:
scope: Cluster
scope: Namespaced
permissions:
# Create and monitor the experiment & helper pods
- apiGroups: [""]
Expand Down Expand Up @@ -60,15 +60,17 @@ spec:
command:
- /bin/bash
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: "30"

# Interval between chaos injection in sec
- name: CHAOS_INTERVAL
value: "30"

# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: ""
value: "0"

# Provide the secret name of the JS script
- name: SCRIPT_SECRET_NAME
Expand All @@ -78,6 +80,14 @@ spec:
- name: SCRIPT_SECRET_KEY
value: "script.js"

# Provide the image name of the helper pod
- name: LIB_IMAGE
value: "ghcr.io/grafana/k6-operator:latest-runner"

# Provide the image pull policy of the helper pod
- name: LIBImagePullPolicy
value: "Always"

labels:
name: k6-loadgen
app.kubernetes.io/part-of: litmus
Expand Down
18 changes: 15 additions & 3 deletions faults/load/k6-loadgen/engine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,15 @@ spec:
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: '30'
value: "30"

# set chaos intreval (in sec) as desired
# Interval between chaos injection in sec
- name: CHAOS_INTERVAL
value: '30'
value: "30"

# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: "0"

# Provide the secret name of the JS script
- name: SCRIPT_SECRET_NAME
Expand All @@ -27,3 +31,11 @@ spec:
# Provide the secret key of the JS script
- name: SCRIPT_SECRET_KEY
value: "script.js"

# Provide the image name of the helper pod
- name: LIB_IMAGE
value: "ghcr.io/grafana/k6-operator:latest-runner"

# Provide the image pull policy of the helper pod
- name: LIBImagePullPolicy
value: "Always"
14 changes: 12 additions & 2 deletions faults/load/k6-loadgen/fault.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ metadata:
app.kubernetes.io/version: ci
spec:
definition:
scope: Cluster
scope: Namespaced
permissions:
# Create and monitor the experiment & helper pods
- apiGroups: [""]
Expand Down Expand Up @@ -60,15 +60,17 @@ spec:
command:
- /bin/bash
env:
# set chaos duration (in sec) as desired
- name: TOTAL_CHAOS_DURATION
value: "30"

# Interval between chaos injection in sec
- name: CHAOS_INTERVAL
value: "30"

# Period to wait before and after injection of chaos in sec
- name: RAMP_TIME
value: ""
value: "0"

# Provide the secret name of the JS script
- name: SCRIPT_SECRET_NAME
Expand All @@ -78,6 +80,14 @@ spec:
- name: SCRIPT_SECRET_KEY
value: "script.js"

# Provide the image name of the helper pod
- name: LIB_IMAGE
value: "ghcr.io/grafana/k6-operator:latest-runner"

# Provide the image pull policy of the helper pod
- name: LIBImagePullPolicy
value: "Always"

labels:
name: k6-loadgen
app.kubernetes.io/part-of: litmus
Expand Down

0 comments on commit e5317cc

Please sign in to comment.