Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created September 7, 2020 09:58
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save velotiotech/6a03575aa9153f04efe764133f3f4a6b to your computer and use it in GitHub Desktop.
Save velotiotech/6a03575aa9153f04efe764133f3f4a6b to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: autoscale-tester
spec:
replicas: 3
selector:
matchLabels:
app: autoscale-tester
template:
metadata:
labels:
app: autoscale-tester
spec:
containers:
- args: [ "--vm", "1", "--vm-bytes", "850M", "--vm-hang", "1"]
command:
- stress
image: polinux/stress
name: autoscale-tester
resources:
limits:
cpu: "1"
memory: 1000Mi
requests:
cpu: "1"
memory: 1000Mi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment