Closed tedsluis closed 6 years ago
Huh... I have k8s 1.10.1 running with Docker version 18.03.0-ce, build 0520e24. How did you settle on these versions?
@chris-short: Thanks for your update. Just to be clear, when you say 1.10.1 version, to what component(s) are you referring? What kubernetes images version do you run? And what kubeadm version at the time of deployment did you run? And kubelet version do you currently run?
I tried to reproduce your setup with the following combination of versions:
docker | kubeadm | kubernetes images | kubelet | result |
---|---|---|---|---|
18.03-ce | 1.10.1-00 | 1.10.1 | 1.10.1-00 | failed on kubeadm init with error "The kubelet is not running" |
18.03-ce | 1.9.7-00 | 1.10.1 | 1.10.1-00 | failed on kubeadm init |
18.03-ce | 1.9.7-00 | 1.10.1 | 1.9.7-00 | playbook finished successful, flannel CrashLoopBackOff |
18.03-ce | 1.9.7-00 | 1.9.7-00 | 1.9.7-00 | playbook finished successful, flannel works okay |
Could it be that you installed your rak8s cluster with kubeadm version 1.9.x? And later upgraded some packages and/or images?
@tedsluis I tried your changes on my fresh raspberry pi cluster. It also works for me with theses version numbers
kubernetes_package_version="1.9.7-00" kubernetes_version="v1.9.7" docker_ce_version="18.04.0~ce~3-0~raspbian" flannel_version="v0.10.0"
So there is at least a second test :-)
I am using 2018-04-18-raspbian-stretch-lite as the rasbian image.
Greetings Heinz
I hope this works. 🤞
FYI... I'm splitting my six node cluster into two three node ones so I can better troubleshoot and iterate.
quote chris-short:
> FYI... I'm splitting my six node cluster into two three node ones so I can better troubleshoot and iterate.
Thanks, I am sure we all benefit when more people do regular testing!
Replaced weave with Flannel and added versioning on docker, kubeadm, kubelet, kubectl, kubernetes images and flannel. Added
cleanup.yml playbook
.Description
Kubernetes 1.10.x (latest) doesn't run (yet) on Raspberry (see https://github.com/kubernetes/kubernetes/issues?utf8=%E2%9C%93&q=is%3Aissue+raspberry).
until now
rak8s
always installs the latest version of it's components: docker-ce, kubeadm, kubelet, kubectl and kubernetes images.After many tests and reading upstream kubernetes issues, I came to the conclusion that
rak8s
only runs when using docker-ce 18-04, kubeadm 1.9.7-00, kubelet 1.9.7-00, kubectl 1.9.7-00 and kubernetes images 1.9.7 in combination with flannel 0.10.0 (instead of weave).This pull request provides two things:
cleanup.yml
playbook that removes docker, docker images, kubernetes and its packages and it performs a reboot of the raspberries.Added variables to the inventory file:
Testing
Down here a test run of the
cleanup.yml
playbook:After running the
cleanup.yml
playbook the raspberries are more or lessfresh
.Down here a run of the
cluster.yml
playbook.The cluster is up and running with
flannel
as network plugin!Issue Number
My change fixes issue #33