chris-short / rak8s

Stand up a Raspberry Pi based Kubernetes cluster with Ansible
MIT License
365 stars 112 forks source link

Rak8s pr ansible update #67

Closed nicholasburr closed 4 years ago

nicholasburr commented 4 years ago

Updated to resolve deprecation warnings, and replace shell module usage with appropriate module, if available.

Updated to Kubernetes v1.17, upgrading was not allowed from 1.14 to 1.18; 1.17 minimum was required.

Updated Docker version to reflect latest available in Raspbian Buster Lite.

File: README.md Description: Updated minimum required Ansible version to 2.7.1 for the reboot module.

File: group_vars/all.yml Description:

File: roles/cleanup/tasks/main.yml Description:

File: roles/common/tasks/main.yml Description:

File: roles/kubeadm/tasks/main.yml Description:

File: roles/master/tasks/main.yml Description:

File: upgrade.yml Description:

A cluster was created, destroyed, created, upgraded, and destroyed locally in my network.

Using 3x rpi 3 B with Raspbian Buster Lite, release date 2020-02-13

  1. ansible-playbook cluster.yml
  2. ansible-playbook cleanup.yml
  3. ansible-playbook cluster.yml
  4. ansible-playbook upgrade.yml
  5. ansible-playbook cleanup.yml
chris-short commented 4 years ago

I'm super excited about this PR, @nicholasburr. I wish I had time to standup my test rig this weekend but, I did yard work yesterday and I've had a beautiful day with the family here. Let me know when this is ready and I'll try to work on molecule testing.

nicholasburr commented 4 years ago

No worries @chris-short, this should be good for now. I am working on the dashboard, but I will submit a second PR for it.

Let me know if you need help with anything, and I will see what I can do.

trentprynn commented 4 years ago

Cloned @nicholasburr's PR and ran the cluster playbook on a fresh raspbian lite buster 3 node install (master and two workers). Went off without a hitch and am able to see all three nodes using kubectl. Dashboard is not working as Nicholas mentioned above.