<p>I would like to use kubernetes/ingress-nginx using <code>kubectl apply -f</code> when I deploy in AKS (Azure), but I cannot figure out how.</p>
<p>I know that I can do <code>kubectl apply -f https://github.com/kubernetes/ingress-nginx/blob/master/deploy/static/provider/cloud/deploy.yaml</code></p>
<p>but the problem is that this provides a very non-configurable version with a lot of items on it.</p>
<p>Any idea? I don't want to start to edit and customize <code>deploy.yaml</code> in the current form as it's super ugly. It is an option but anyone has any better idea?</p>
<p>I know that I can use help, and that's a current production version, but for some reason, I need to try to move to <code>kubectl apply -f</code></p>
<p>Thanks in advance.</p>

<p>Have a look at Kustomize</p>
<p><a href="https://kubernetes.io/blog/2018/05/29/introducing-kustomize-template-free-configuration-customization-for-kubernetes/" rel="nofollow noreferrer">https://kubernetes.io/blog/2018/05/29/introducing-kustomize-template-free-configuration-customization-for-kubernetes/</a></p>
<p><a href="https://github.com/kubernetes-sigs/kustomize/tree/master/examples/helloWorld" rel="nofollow noreferrer">https://github.com/kubernetes-sigs/kustomize/tree/master/examples/helloWorld</a></p>
<p>it was made exactly for your use case.</p>
