hasura / gitkube

Build and deploy docker images to Kubernetes using git push
Apache License 2.0
3.81k stars 208 forks source link

ImageInspectError on installing gitkube (gitkube install) on minikube #86

Closed scriptonist closed 6 years ago

scriptonist commented 6 years ago

Environment ?

minikube version
minikube version: v0.26.1
$ gitkube version
v0.2.0

What did I do?

gitkube install

What I Expected to see?

Gitkube running peacefully

What did I see instead?

$ k get po -n kube-system 
NAME                                    READY     STATUS              RESTARTS   AGE
default-http-backend-ddb2s              1/1       Running             2          2d
etcd-minikube                           1/1       Running             0          26m
gitkube-controller-cc586fcb-zfk8b       0/1       ImageInspectError   0          23m
gitkubed-6dc69968c5-zwqg5               1/1       Running             0          23m
kube-addon-manager-minikube             1/1       Running             2          2d
kube-apiserver-minikube                 1/1       Running             0          26m
kube-controller-manager-minikube        1/1       Running             0          26m
kube-dns-86f4d74b45-9qfxb               3/3       Running             7          2d
kube-proxy-kjncs                        1/1       Running             0          25m
kube-scheduler-minikube                 1/1       Running             2          2d
kubernetes-dashboard-5498ccf677-cxhrm   1/1       Running             6          2d
nginx-ingress-controller-csqzz          1/1       Running             4          2d
storage-provisioner                     1/1       Running             6          2d
tiller-deploy-5f789bd9f7-zmt8g          1/1       Running             2          2d
$ k describe po gitkube-controller-cc586fcb-zfk8b -n kube-system
....
....
Events:
  Type     Reason                 Age                From               Message
  ----     ------                 ----               ----               -------
  Normal   Scheduled              21m                default-scheduler  Successfully assigned gitkube-controller-cc586fcb-zfk8b to minikube
  Normal   SuccessfulMountVolume  21m                kubelet, minikube  MountVolume.SetUp succeeded for volume "gitkube-token-klm4g"
  Warning  Failed                 6m (x71 over 21m)  kubelet, minikube  Error: ImageInspectError
  Warning  InspectFailed          1m (x93 over 21m)  kubelet, minikube  Failed to inspect image "hasura/gitkube-controller:v0.2.0": rpc error: code = Unknown desc = Error response from daemon: readlink /var/lib/docker/overlay2: invalid argument
`
tirumaraiselvan commented 6 years ago

Hmm weird. What version of docker are you running? Which OS?

You may have to do minikube ssh to figure this out.

scriptonist commented 6 years ago
$ docker version
Client:
 Version:       17.12.1-ce
 API version:   1.35
 Go version:    go1.9.4
 Git commit:    7390fc6
 Built: Tue Feb 27 22:13:43 2018
 OS/Arch:       linux/amd64

Server:
 Engine:
  Version:      17.12.1-ce
  API version:  1.35 (minimum version 1.12)
  Go version:   go1.9.4
  Git commit:   7390fc6
  Built:        Tue Feb 27 22:20:43 2018
  OS/Arch:      linux/amd64
  Experimental: false
$ uname -a
Linux minikube 4.9.64 #1 SMP Fri Mar 30 21:27:22 UTC 2018 x86_64 GNU/Linux
$ cat /etc/*-release
NAME=Buildroot
VERSION=2017.11
ID=buildroot
VERSION_ID=2017.11
PRETTY_NAME="Buildroot 2017.11"
NAME=Buildroot
VERSION=2017.11
ID=buildroot
VERSION_ID=2017.11
PRETTY_NAME="Buildroot 2017.11"
tirumaraiselvan commented 6 years ago

Image inspect errors seem to be caused due to the runtime and not the container per se. Do you mind updating minikube to the latest version (0.28) and trying this out?

scriptonist commented 6 years ago

It seems there are no problems. :peace_symbol:

$ minikube version
minikube version: v0.28.0
$ k get po -n kube-system
NAME                                        READY     STATUS    RESTARTS   AGE
default-http-backend-59868b7dd6-dgjlw       1/1       Running   0          2m
etcd-minikube                               1/1       Running   0          2m
gitkube-controller-cc586fcb-tfrtp           1/1       Running   0          1m
gitkubed-7874c94957-fg7xj                   1/1       Running   0          1m
kube-addon-manager-minikube                 1/1       Running   0          2m
kube-apiserver-minikube                     1/1       Running   0          1m
kube-controller-manager-minikube            1/1       Running   0          2m
kube-dns-86f4d74b45-kxmwv                   3/3       Running   0          2m
kube-proxy-qs8sj                            1/1       Running   0          2m
kube-scheduler-minikube                     1/1       Running   0          2m
kubernetes-dashboard-5498ccf677-bx888       1/1       Running   0          2m
nginx-ingress-controller-67956bf89d-rx462   1/1       Running   0          2m
storage-provisioner                         1/1       Running   0          2m