<p>In my folder, I have a <strong>deployment.yaml</strong> file and a <strong>kustomization.yaml</strong>
Inside the <strong>kustomization.yaml</strong>:</p>
<pre><code>bases:
- ../base
- deployment.yaml
</code></pre>
<p>When I run <code>kubectl apply -f deployment.yaml</code>, it runs successfully
but when running <code>kubectl apply -k [folder name]</code> then it gives the error message: <code>error: couldn't make loader for deployment.yaml: got file 'deployment.yaml', but '/[absolute path of the folder]/deployment_azure.yaml' must be a directory to be a root</code></p>

user17249888
<p>This is most likely because the folder is a symlink to another folder or nfs share
It should be hard local directory to be able to apply yaml files in it from kubectl</p>
