<p>I am deploying Locust on Kubernetes using Helm Charts(<a href="https://github.com/helm/charts/tree/master/stable/locust" rel="nofollow noreferrer">https://github.com/helm/charts/tree/master/stable/locust</a>)</p>
<p>2 Worker pods are running with no errors, but master is in <code>CrashLoopBackOff</code> status.</p>
<p>When I check the logs for the failing pod I see following error:</p>
<pre><code>[2020-10-07 21:46:18,300] locust-master-5bf8d86867-kfxxg/ERROR/stderr: Traceback (most recent call last):
[2020-10-07 21:46:18,300] locust-master-5bf8d86867-kfxxg/ERROR/stderr: File &quot;/usr/local/bin/locust&quot;, line 11, in &lt;module&gt;
[2020-10-07 21:46:18,300] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,300] locust-master-5bf8d86867-kfxxg/ERROR/stderr: sys.exit(main())
[2020-10-07 21:46:18,300] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,301] locust-master-5bf8d86867-kfxxg/ERROR/stderr: File &quot;/usr/local/lib/python3.7/site-packages/locust/main.py&quot;, line 391, in main
[2020-10-07 21:46:18,301] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,301] locust-master-5bf8d86867-kfxxg/ERROR/stderr: docstring, locusts = load_locustfile(locustfile)
[2020-10-07 21:46:18,301] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,301] locust-master-5bf8d86867-kfxxg/ERROR/stderr: File &quot;/usr/local/lib/python3.7/site-packages/locust/main.py&quot;, line 358, in load_locustfile
[2020-10-07 21:46:18,301] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: imported = __import__(os.path.splitext(locustfile)[0])
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: File &quot;/locust-tasks/tasks.py&quot;, line 1, in &lt;module&gt;
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: from locust import HttpUser, task, TaskSet, between
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: 
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: ImportError
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: :
[2020-10-07 21:46:18,302] locust-master-5bf8d86867-kfxxg/ERROR/stderr: cannot import name 'HttpUser' from 'locust' (/usr/local/lib/python3.7/site-packages/locust/__init__.py)
[2020-10-07 21:46:18,303] locust-master-5bf8d86867-kfxxg/ERROR/stderr:
</code></pre>
<p>I will appreciate if someone could help me understand what I am doing wrong. My thought was that I am using  <code>HttpUser</code> and in the image that I am pulling (greenbirdit/locust) the is still <code>LocustUser</code>, but I don't know how to fix it.</p>
<p>Thank you for help!</p>

<p>Your link to Locust Helm Chart says it's using Locust container 0.9.0. Before Locust 1.0 <code>HttpUser</code> was <code>HttpLocust</code>. You can see the documentation for 0.9.0 here: <a href="https://docs.locust.io/en/0.9.0/" rel="nofollow noreferrer">https://docs.locust.io/en/0.9.0/</a></p>
<p>I don't use Helm, but it sure looks like you'll want to rewrite your locustfile to use <code>HttpLocust</code> and other pre-1.0 APIs until Helm updates the chart to use 1.0+.</p>
