Is there a way I can set nodeselectors , tolerations and resource limits for all the pods that gets created as part of Job in the experiment workflow #4531
Unanswered
biplabMazumdar
asked this question in
Q&A
Replies: 1 comment
-
Yes, you can set nodeSelectors, tolerations, and resource limits for all the pods created as part of a Job in an experiment workflow by configuring these parameters in the ChaosEngine resource under the components field of each experiment. Here’s how each one works and examples of how to implement them: apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
name: engine-nginx
spec:
engineState: "active"
annotationCheck: "false"
appinfo:
appns: "default"
applabel: "app=nginx"
appkind: "deployment"
chaosServiceAccount: pod-delete-sa
experiments:
- name: pod-delete
spec:
components:
# nodeselector for the experiment pod
nodeSelector:
context: chaos
resources:
requests:
cpu: "250m"
memory: "64Mi"
limits:
cpu: "500m"
memory: "128Mi"
tolerations:
- key: "key1"
operator: "Equal"
value: "value1"
effect: "Schedule" For more information on configuring these fields in your Chaos experiments, refer to the LitmusChaos Documentation. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way I can set nodeselectors , tolerations and resource limits for all the pods that gets created as part of Job in the experiment workflow
Beta Was this translation helpful? Give feedback.
All reactions