Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add stress command #211

Open
HeavyWombat opened this issue Nov 12, 2019 · 0 comments
Open

Add stress command #211

HeavyWombat opened this issue Nov 12, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@HeavyWombat
Copy link
Member

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
@HeavyWombat HeavyWombat added the enhancement New feature or request label Nov 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant