<p>I have an airflow deployed in kubernetes. When I curl the base_url, it shows:</p>

<pre><code>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"&gt;
&lt;title&gt;Redirecting...&lt;/title&gt;
&lt;h1&gt;Redirecting...&lt;/h1&gt;
* Connection #0 to host &lt;my_base_url&gt; left intact
&lt;p&gt;You should be redirected automatically to target URL: &lt;a href="/admin/"&gt;/admin/&lt;/a&gt;.  If not click the link.
</code></pre>

<p>If I browse base_url/health shows that is healthy.
If I run the kubectl port-forward command, I can see the UI.</p>

<p>What is causing the redirecting message?</p>

alltej
<p>The solution that works for me is setting the environment variable. </p>

<pre><code>FORWARDED_ALLOW_IPS = *

</code></pre>

<p>Add this environment variable in the deployment yaml file.</p>

<pre><code>          env:          
            - name: FORWARDED_ALLOW_IPS
              value: "*"
</code></pre>

<p>I have <code>enable_proxy_fix = False</code> set in airflow.cfg. </p>

<p>I found a related SO question here: <a href="https://stackoverflow.com/questions/48413093/cannot-access-airflow-web-server-via-aws-load-balancer-https-because-airflow-red">Cannot access airflow web server via AWS load balancer HTTPS because airflow redirects me to HTTP</a></p>
