Commit 51e0647f authored by Jeff Lowdermilk's avatar Jeff Lowdermilk

Merge pull request #9967 from satnam6502/counter-rc

Synthetic counter RC for load testing
parents 6e34d204 8f540e73
counter:
kubectl create --validate -f counter-rc.yaml
counter1:
kubectl scale rc counter --replicas=1
counter10:
kubectl scale rc counter --replicas=10
counter50:
kubectl scale rc counter --replicas=50
counter100:
kubectl scale rc counter --replicas=100
counter200:
kubectl scale rc counter --replicas=200
counter500:
kubectl scale rc counter --replicas=500
counter5000:
kubectl scale rc counter --replicas=5000
stop:
kubectl stop rc counter
apiVersion: v1
kind: ReplicationController
metadata:
name: counter
spec:
replicas: 1
selector:
app: counter
template:
metadata:
labels:
app: counter
spec:
containers:
- name: count
image: ubuntu:14.04
resources:
limits:
cpu: 1m
args: [bash, -c,
'for ((i = 0; ; i++)); do echo "$i: $(date)"; sleep 1; done']
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment