kind: ReplicationController
apiVersion: v1
metadata:
  name: locust-worker
  labels:
    name: locust
    role: worker
spec:
  replicas: 2
  selector:
    name: locust
    role: worker
  template:
    metadata:
      labels:
        name: locust
        role: worker
    spec:
      containers:
        - name: locust
          image: duelle/edcc:locust
          imagePullPolicy: Always
          env:
            - name: LOCUST_MODE
              value: slave
            - name: MASTER_HOST
              value: locust-master
            - name: TARGET_URL
              value: http://elb:8080
            - name: INFLUXDB_URL
              value: influxdb
            - name: INFLUXDB_PORT
              value: '8086'
