![](/_next/image?url=%2Fimages%2Fprofile.jpg&w=384&q=75)
Martin Koníček
Blog
MicroK8S failing with Kustomize
![Showcase image](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F93eujfo6%2Fproduction%2F034fd89270bed6a87725f36878df6de570ff3aed-1024x1024.jpg%3Frect%3D0%2C128%2C1024%2C768%26w%3D1024%26h%3D768%26fit%3Dmax%26auto%3Dformat&w=2048&q=75)
When you get an error message error: failed to run '/snap/microk8s/5250/usr/bin/git fetch --depth=1 https://... main': fatal: couldn't find remote ref main this might be a solution
# sudo mount --bind -o nodev,ro /usr/bin /snap/microk8s/5250/usr/bin
Do not forget to change 5250 to your actual number in your distribution.
Reason why it is failing is because of the old git version.
reference: https://github.com/canonical/microk8s/issues/3988
![MicroK8s git fetch kustomize error](/_next/image?url=https%3A%2F%2Fcdn.sanity.io%2Fimages%2F93eujfo6%2Fproduction%2Fd3c794caf4a88af4557b0ada9cd169c576e9cdfc-1200x630.jpg%3Frect%3D285%2C0%2C630%2C630%26w%3D100%26h%3D100%26fit%3Dmax%26auto%3Dformat&w=256&q=75)
MicroK8s git fetch kustomize errorThis is a simple workaround when you get a git fetch error when trying deploy kustomize on MicroK8s