apiVersion: apps/v1
kind: Deployment
metadata:
  name: load-test
  labels:
    app: sock-shop
    name: load-test
  namespace: loadtest
spec:
  replicas: 2
  selector:
    matchLabels:
      app: sock-shop
  template:
    metadata:
      labels:
        app: sock-shop
        name: load-test
    spec:
      containers:
      - name: load-test
        image: weaveworksdemos/load-test:0.1.1
        command: ["/bin/sh"]
        args: ["-c", "while true; do locust --host http://front-end.sock-shop.svc.cluster.local -f /config/locustfile.py --clients 5 --hatch-rate 5 --num-request 100 --no-web; done"]
      nodeSelector:
        beta.kubernetes.io/os: linux
