<p>thanks for checking out my topic.</p>
<p>I'm currently working to have kustomize to download the resource and base files from our git repository.
We have tried a few options some of them following the documentation and some of them not, see below. But anyhow still not able to download from our remote repo and while trying to run the kubectl apply it looks for a local resource based on the git url and file names.</p>
<pre><code>resources:
  - ssh://git@SERVERURL:$PORT/$REPO.GIT
  - git::ssh://git@SERVERURL:$PORT/$REPO.GIT
  - ssh::git@SERVERURL:$PORT/$REPO.GIT
  - git::git@SERVERURL:$PORT/$REPO.GIT
  - git@SERVERURL:$PORT/$REPO.GIT
</code></pre>
<p>As a workaround I have added the git clone for the expected folder to my pipeline, but the goal is to have the bases/resources downloaded directly from the kustomization url.
Any ideas or some hints on how to get it running?</p>

<p>After reaching some Kubernetes colleagues, we found out the reason for my problem.
Basically, when running kubectl with version lower than 1.20 we have kustomize v2.0.3.
My Jenkins agent was using a outdated kubectl version (1.17) and this was the root cause.</p>
<p>In this case, there were two options:</p>
<ol>
<li>Update kubectl image, with 1.20 or higher,</li>
<li>Decouple kustomization and kubectl (fits better in our case).</li>
</ol>
