# blacklist the source and destination ports
apiVersion: litmuschaos.io/v1alpha1
kind: ChaosEngine
metadata:
  name: engine-nginx
spec:
  engineState: "active"
  annotationCheck: "false"
  appinfo:
    appns: "default"
    applabel: "app=nginx"
    appkind: "deployment"
  chaosServiceAccount: pod-network-duplication-sa
  experiments:
    - name: pod-network-duplication
      spec:
        components:
          env:
            # it will blacklist 80 and 8080 source ports
            - name: SOURCE_PORTS
              value: '!80,8080'
            # it will blacklist 8080 and 9000 destination ports
            - name: DESTINATION_PORTS
              value: '!8080,9000'
            - name: TOTAL_CHAOS_DURATION
              value: '60'