mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
Synthetic counter RC for load testing
This commit is contained in:
parent
43889c612c
commit
8f540e739c
27
test/scalability/counter/Makefile
Normal file
27
test/scalability/counter/Makefile
Normal file
@ -0,0 +1,27 @@
|
||||
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
|
23
test/scalability/counter/counter-rc.yaml
Normal file
23
test/scalability/counter/counter-rc.yaml
Normal file
@ -0,0 +1,23 @@
|
||||
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']
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user