<p>I am trying to use <code>ingress-nginx</code> from this <a href="https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml" rel="nofollow noreferrer">URL</a> with <em><strong>kustomize</strong></em></p>
<p>The working example are in this gist, is pretty simple, no customizations <a href="https://gist.github.com/skhaz/7d8fdb03aee624d651c90156021f6ce8" rel="nofollow noreferrer">https://gist.github.com/skhaz/7d8fdb03aee624d651c90156021f6ce8</a></p>
<p>I am using this YAML <a href="https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml" rel="nofollow noreferrer">https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.2.0/deploy/static/provider/cloud/deploy.yaml</a></p>
<p>However, when I run <code>make create</code>, which basically runs <code>kubectl create --kustomize .</code></p>
<p>I get the error</p>
<pre><code>service/ingress-nginx-controller created
service/ingress-nginx-controller-admission created
deployment.apps/ingress-nginx-controller created
job.batch/ingress-nginx-admission-create created
job.batch/ingress-nginx-admission-patch created
ingressclass.networking.k8s.io/nginx created
Error from server (AlreadyExists): error when creating &quot;.&quot;: namespaces &quot;ingress-nginx&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: serviceaccounts &quot;ingress-nginx&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: serviceaccounts &quot;ingress-nginx-admission&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: roles.rbac.authorization.k8s.io &quot;ingress-nginx&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: roles.rbac.authorization.k8s.io &quot;ingress-nginx-admission&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: clusterroles.rbac.authorization.k8s.io &quot;ingress-nginx&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: clusterroles.rbac.authorization.k8s.io &quot;ingress-nginx-admission&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: rolebindings.rbac.authorization.k8s.io &quot;ingress-nginx&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: rolebindings.rbac.authorization.k8s.io &quot;ingress-nginx-admission&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: clusterrolebindings.rbac.authorization.k8s.io &quot;ingress-nginx&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: clusterrolebindings.rbac.authorization.k8s.io &quot;ingress-nginx-admission&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: configmaps &quot;ingress-nginx-controller&quot; already exists
Error from server (AlreadyExists): error when creating &quot;.&quot;: validatingwebhookconfigurations.admissionregistration.k8s.io &quot;ingress-nginx-admission&quot; already exists
</code></pre>
<p>What I am doing wrong?</p>
<p><code>kubectl apply</code> works, but I want to customize with <strong>kustomize</strong></p>

Rodrigo
<p>The error was on <code>kubectl create</code>, should be <code>kubectl apply</code></p>
