Skip to content

Add stress command #211

Description

@HeavyWombat

Add new command called stress to start a container that creates arbitrary load on nodes. This can be useful in scenarios to test whether a certain task still works even under harsh conditions.

Example deployment YAML:

---
apiVersion: v1
kind: Namespace
metadata:
  name: stress

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: stress
  namespace: stress
spec:
  replicas: 3
  template:
    metadata:
      labels:
        app: stress
    spec:
      affinity:
        podAntiAffinity:
          requiredDuringSchedulingIgnoredDuringExecution:
          - topologyKey: "kubernetes.io/hostname"
            labelSelector:
              matchExpressions:
              - key: app
                operator: In
                values:
                - stress
      containers:
      - name: stress
        image:  progrium/stress
        command:
        - /bin/sh
        - -c
        - stress --cpu 4

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions