---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-load
  labels:
    app: redis-load
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redis-load
  template:
    metadata:
      labels:
        app: redis-load
    spec:
      containers:
      - name: redis
        image: litmuschaos/litmus-redis-load:latest
        args:
          - -c
          - locust --headless -f locustfile.py
        command:
          - /bin/bash 
        env:
          - name: REDIS_PORT
            value: "6379"
          - name: REDIS_HOST
            value: "redis.redis.svc"
          - name: REDIS_PW
            value: ""
         
      

