---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: litmus-experiment
spec:
  replicas: 1
  selector:
    matchLabels:
      app: litmus-experiment
  template:
    metadata:
      labels:
        app: litmus-experiment
    spec:
      serviceAccountName: aws_az_chaos-sa
      containers:
      - name: gotest
        image: busybox
        command: 
          - sleep
          - "3600"
        env:
          - name: LOAD_BALANCER_NAME
            value: ''

          - name: LOAD_BALANCER_ZONES
            value: ''
 
          - name: LOAD_BALANCERNAME_ARN
            value: '' 
          
          - name: AWS_SHARED_CREDENTIALS_FILE
            value: ""
          
          - name: TOTAL_CHAOS_DURATION
            value: ''
          
          - name: AWS_REGIONS
            value: ""

          ## Period to wait before injection of chaos in sec
          - name: RAMP_TIME
            value: ''

          ## env var that describes the library used to execute the chaos
          ## default: litmus. Supported values: litmus, powerfulseal, chaoskube
          - name: LIB
            value: ''

          # provide the chaos namespace
          - name: CHAOS_NAMESPACE
            value: ''
        
          - name: POD_NAME
            valueFrom:
              fieldRef:
                fieldPath: metadata.name

          - name: CHAOS_SERVICE_ACCOUNT
            valueFrom:
              fieldRef:
                fieldPath: spec.serviceAccountName

