title: Microk8s ImagePullBackOff cannot be fixed by modifying the config
body: <p>I have installed a microk8s to ubuntu (arm64 bit version), I would like to access my local image registry provided by the <code>microk8s enable registry</code>. But I get a ImagePullBackOff error, I have tried to modify <code>/var/snap/microk8s/current/args/containerd.toml</code> config, but it not works:</p>
  <pre><code>[plugins.cri.registry]
    [plugins.cri.registry.mirrors]
      [plugins.cri.registry.mirrors.&quot;docker.io&quot;]
        endpoint = [&quot;https://registry-1.docker.io&quot;]
      [plugins.cri.registry.mirrors.&quot;localhost:32000&quot;]
        endpoint = [&quot;http://localhost:32000&quot;]
      [plugins.cri.registry.mirrors.&quot;192.168.0.45:32000&quot;]
        endpoint = [&quot;http://192.168.0.45:32000&quot;]
      [plugins.cri.registry.configs.&quot;192.168.0.45:32000&quot;.tls]
        insecure_skip_verify = true
  </code></pre>
  <p>My pod status:</p>
  <pre><code>microk8s.kubectl describe pod myapp-7d655f6ccd-gpgkx
  Name:         myapp-7d655f6ccd-gpgkx
  Namespace:    default
  Priority:     0
  Node:         192.168.0.66/192.168.0.66
  Start Time:   Mon, 15 Mar 2021 16:53:30 +0000
  Labels:       app=myapp
                pod-template-hash=7d655f6ccd
  Annotations:  &lt;none&gt;
  Status:       Pending
  IP:           10.1.54.7
  IPs:
    IP:           10.1.54.7
  Controlled By:  ReplicaSet/myapp-7d655f6ccd
  Containers:
    myapp:
      Container ID:   
      Image:          192.168.0.45:32000/myapp:latest
      Image ID:       
      Port:           9000/TCP
      Host Port:      0/TCP
      State:          Waiting
        Reason:       ImagePullBackOff
      Ready:          False
      Restart Count:  0
      Limits:
        memory:  384Mi
      Requests:
        memory:  128Mi
      Environment:
        REDIS:                       redis
        MYSQL:                       mysql
      Mounts:
        /var/run/secrets/kubernetes.io/serviceaccount from default-token-dn4bk (ro)
  Conditions:
    Type              Status
    Initialized       True 
    Ready             False 
    ContainersReady   False 
    PodScheduled      True 
  Volumes:
    default-token-dn4bk:
      Type:        Secret (a volume populated by a Secret)
      SecretName:  default-token-dn4bk
      Optional:    false
  QoS Class:       Burstable
  Node-Selectors:  &lt;none&gt;
  Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                   node.kubernetes.io/unreachable:NoExecute for 300s
  Events:
    Type     Reason     Age                 From               Message
    ----     ------     ----                ----               -------
    Normal   Scheduled  15m                 default-scheduler  Successfully assigned default/myapp-7d655f6ccd-gpgkx to 192.168.0.66
    Normal   Pulling    14m (x4 over 15m)   kubelet            Pulling image &quot;192.168.0.45:32000/myapp:latest&quot;
    Warning  Failed     14m (x4 over 15m)   kubelet            Failed to pull image &quot;192.168.0.45:32000/myapp:latest&quot;: rpc error: code = Unknown desc = failed to resolve image &quot;192.168.0.45:32000/myapp:latest&quot;: no available registry endpoint: failed to do request: Head &quot;https://192.168.0.45:32000/v2/myapp/manifests/latest&quot;: http: server gave HTTP response to HTTPS client
    Warning  Failed     14m (x4 over 15m)   kubelet            Error: ErrImagePull
    Warning  Failed     13m (x6 over 15m)   kubelet            Error: ImagePullBackOff
    Normal   BackOff    20s (x63 over 15m)  kubelet            Back-off pulling image &quot;192.168.0.45:32000/myapp:latest&quot;
  </code></pre>
  <p>version info:</p>
  <pre><code>microk8s.kubectl version
  Client Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.15&quot;, GitCommit:&quot;73dd5c840662bb066a146d0871216333181f4b64&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-01-13T13:22:41Z&quot;, GoVersion:&quot;go1.13.15&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/arm64&quot;}
  Server Version: version.Info{Major:&quot;1&quot;, Minor:&quot;18&quot;, GitVersion:&quot;v1.18.15&quot;, GitCommit:&quot;73dd5c840662bb066a146d0871216333181f4b64&quot;, GitTreeState:&quot;clean&quot;, BuildDate:&quot;2021-01-13T13:14:05Z&quot;, GoVersion:&quot;go1.13.15&quot;, Compiler:&quot;gc&quot;, Platform:&quot;linux/arm64&quot;}
  </code></pre>
  <p>It seems that it want to use https instead of http.</p>
  <p>How can I use insecure option in microk8s with containerd?</p>