<p>I want to edit my <code>Nginx.conf</code> file present inside Nginx controller pod in AKS, but the edit command is not working using the exec command, is there any way else I could edit my <code>nginx.conf</code>.</p>
<p>the command which I tried:</p>
<pre><code>kubectl exec -it nginx-nginx-ingress-controller -n nginx --  cat /etc/nginx/nginx.conf
</code></pre>

Rughma Sussan Renji
<p>yh, seems this is also working. tried an alternative way:</p>
<p><code>Edit/add</code> the properties to change in <code>ingress.yaml</code> and redeploy it. the changes will then reflect in <code>nginx.conf</code></p>
