Coder Social home page Coder Social logo

Comments (7)

billsakkas avatar billsakkas commented on May 28, 2024

I tried the new link and it crashes my Raspberry (Master).
After I apply it:

kube-flannel-ds-arm-r7kwl 0/1 PodInitializing 0 7s

and then it crashes, am I doing something wrong?
I've just started playing with Kubernetes in Raspberry Pi's.

from k8s-on-raspbian.

svernier avatar svernier commented on May 28, 2024

What comes back when you run kubectl describe pod kube-flannel-ds-arm-r7kwl?

from k8s-on-raspbian.

billsakkas avatar billsakkas commented on May 28, 2024

I think that flannel installed successfully because

pi@k8s-master:~ $ kubectl get pods --namespace=kube-system
NAME                                         READY   STATUS              RESTARTS   AGE
coredns-86c58d9df4-5rpnj                     0/1     ContainerCreating   0          66m
coredns-86c58d9df4-dv6c9                     0/1     ContainerCreating   0          66m
etcd-k8s-master                              1/1     Running             1          65m
kube-apiserver-k8s-master                    1/1     Running             1          66m
kube-controller-manager-k8s-master           1/1     Running             1          65m
kube-flannel-ds-arm-9bzfr                    1/1     Running             0          19s
kube-flannel-ds-arm-j9k2s                    1/1     Running             0          19s
kube-proxy-rpf84                             1/1     Running             0          48m
kube-proxy-vv67p                             1/1     Running             1          66m
kube-scheduler-k8s-master                    1/1     Running             1          66m

and

pi@k8s-master:~ $ kubectl get nodes
NAME         STATUS   ROLES    AGE   VERSION
k8s-master   Ready    master   79m   v1.13.3
k8s-node-1   Ready    <none>   61m   v1.13.3

But then it crashed (ssh terminated and not responding if I try to ssh again) so I had to cut it's power in order to force-reboot it.
After it booted, it was working as expected (pods Running) but it crashed again after a minute or so while I was typing:
kubectl get pods --namespace=kube-system

Any idea why is this happening?

from k8s-on-raspbian.

billsakkas avatar billsakkas commented on May 28, 2024

What comes back when you run kubectl describe pod kube-flannel-ds-arm-r7kwl?

pi@k8s-master:~ $ kubectl get pods --namespace=kube-system
NAME                                         READY   STATUS             RESTARTS   AGE
coredns-86c58d9df4-5rpnj                     1/1     Running            0          92m
coredns-86c58d9df4-dv6c9                     0/1     Error              12         92m
etcd-k8s-master                              1/1     Running            3          91m
kube-apiserver-k8s-master                    1/1     Running            3          92m
kube-controller-manager-k8s-master           1/1     Running            3          91m

> kube-flannel-ds-arm-9bzfr                    1/1     Running            0          26m
> kube-flannel-ds-arm-j9k2s                    0/1     Error              3          26m

kube-proxy-rpf84                             1/1     Running            0          75m
kube-proxy-vv67p                             1/1     Running            3          92m
kube-scheduler-k8s-master                    1/1     Running            3          92m
kubernetes-dashboard-head-7bc4868777-4qnj9   0/1     CrashLoopBackOff   1          88m

Crashed again.

from k8s-on-raspbian.

alexellis avatar alexellis commented on May 28, 2024

I'm currently using Weave net with success. I'd recommend switching over and logging and issue with the flannel folks and checking their issue tracker of course.

Also double check that each Pi has s unique machine ID.

Alex

from k8s-on-raspbian.

billsakkas avatar billsakkas commented on May 28, 2024

@alexellis I've tried Weave Net before I switched to Flannel and it kept crashing too.
I think the problem is that CoreDNS is in CrashLoopBackOff and Error state and after a while it crashes the Pi.

coredns-86c58d9df4-dv6c9                     0/1     Error              21         112m

I sometimes get this too:

pi@k8s-master:~ $ kubectl get pods --namespace=kube-system
Unable to connect to the server: net/http: TLS handshake timeout

from k8s-on-raspbian.

alexellis avatar alexellis commented on May 28, 2024

Sigh, one week Flannel works and the next Weave net, then they both push code and one breaks and the other gets fixed. I hope this will improve over time.

Thanks for the PR you raised, I'll now close this issue.

Alex

from k8s-on-raspbian.

Related Issues (15)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.