Interview Prep/SRE & Reliability/Capacity, Load Testing & Chaos Engineering

What is Chaos Mesh and what faults can it inject?

IntermediateConceptCapacity, Load Testing & Chaos Engineering
Answer

Chaos Mesh is a CNCF chaos platform for Kubernetes. A controller manager and a privileged chaos-daemon DaemonSet inject faults declared as CRDs:

  • PodChaos: pod-kill, pod-failure, container-kill.
  • NetworkChaos: delay, loss, duplicate, corrupt, partition, bandwidth.
  • StressChaos: CPU and memory stress.
  • IOChaos, TimeChaos, DNSChaos, HTTPChaos, KernelChaos, JVMChaos.
  • Schedule for recurring experiments and Workflow for multi-step experiments.
apiVersion: chaos-mesh.org/v1alpha1
kind: PodChaos
metadata: {name: kill-one-checkout, namespace: shop}
spec:
  action: pod-kill
  mode: one
  selector: {namespaces: [shop], labelSelectors: {app: checkout}}
All SRE & Reliability questions Roadmap: SRE & incident response

More on Capacity, Load Testing & Chaos Engineering