Martin Koníček

Blog

MicroK8s git fetch kustomize error

Showcase image

This is a simple workaround when you get a git fetch error when trying deploy kustomize on MicroK8s

Error

kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=444631bfe06f3bcca5d0eadf1857eac1d369421d" | kubectl apply -f -
error: git cmd = '/snap/microk8s/6572/usr/bin/git fetch --depth=1 origin 444631bfe06f3bcca5d0eadf1857eac1d369421d': exit status 128

Solution

 sudo mount --bind -o nodev,ro /usr/bin /snap/microk8s/current/usr/bin

Resolution

$ sudo mount --bind -o nodev,ro /usr/bin /snap/microk8s/current/usr/bin
$ kubectl kustomize "github.com/kubernetes-sigs/gateway-api/config/crd/experimental?ref=444631bfe06f3bcca5d0eadf1857eac1d369421d" | kubectl apply -f -
customresourcedefinition.apiextensions.k8s.io/gatewayclasses.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/gateways.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/grpcroutes.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/httproutes.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/referencegrants.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/tcproutes.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/tlsroutes.gateway.networking.k8s.io configured
customresourcedefinition.apiextensions.k8s.io/udproutes.gateway.networking.k8s.io configured

This is regarding wrong version of git related to bug https://github.com/canonical/microk8s/issues/4202

  • IPv6 in Raspbian securely with IPTables
    IPv6 in Raspbian securely with IPTablesWhen using a Raspberry Pi behind a NAT firewall, it is common to discover that local services are accessible to the world when IPv6 is allowed by the provider. To prevent this, I will discuss how to set up a firewall for IPv6 on the Raspberry Pi.
  • cs | en