Martin Koníček

Blog

MicroK8S failing with Kustomize

Showcase image

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
    MicroK8s git fetch kustomize errorThis is a simple workaround when you get a git fetch error when trying deploy kustomize on MicroK8s
  • cs | en