<p>Getting the below error for the command <code>kubectl apply -n prod -f kustomize/kustomization.yaml</code></p>
<pre><code>error: unable to recognize &quot;kustomize/kustomization.yaml&quot;: no matches for kind &quot;Kustomization&quot; in version &quot;kustomize.config.k8s.io/v1beta1&quot;
</code></pre>
<p>Please advise.</p>

Naveen Kumar Yallampalli
<p>Firstly I recommend to read official doc: <a href="https://kubernetes.io/docs/tasks/manage-kubernetes-objects/kustomization/" rel="nofollow noreferrer">kubernetes-kustomization</a>.</p>
<p>To solve the problem use <code>-k</code> flag instead of <code>-f</code> flag in command:</p>
<pre><code>$ kubectl apply -k &lt;kustomization_directory&gt;
</code></pre>
<p>If in your kustomize directory will be only one manifest file (<code>kustomization.yaml</code>) then use <code>$ kubectl apply -k kustomize/</code> from this directory. Otherwise create new empty directory and put your <code>kustomization.yaml</code> there then execute following command from parent directory <code>$ kubectl apply -k new-directory/</code></p>
<p>Take a look: <a href="https://github.com/kubernetes-sigs/kustomize/issues/738" rel="nofollow noreferrer">kustomize-no-matches</a>, <a href="https://stackoverflow.com/questions/63081332/kustomize-no-matches-for-kind-kustomization-in-version-kustomize-config-k8s">kustomize-kubernetes-no-matches</a>.</p>
