Jump to content

[Guide] Arch Linux Kubernetes cluster on Unraid


SpaceAce

Recommended Posts

Hello, all. I'm only a few days into using Unraid, but I've already given the virtual machine functionality a pretty good thumping. I have written a comprehensive guide to creating a Kubernetes cluster on top of Arch Linux inside Unraid. After I'd gotten it all together and published it to Github, I realized there was probably an official forum for this sort of thing, and it turns out there is, so here I am.

 

The guide is here: https://github.com/SpaceAceMonkey/spaceace-arch-kubernetes-unraid

 

Please let me know if you have any problems following the instructions, or notice anything missing. It probably needs a little cosmetic cleanup, but I am mostly concerned with making sure the content is accurate and easy to follow.

  • Like 2
  • Thanks 3
Link to comment
  • 4 weeks later...

Hey OP, I saw this result when searching for kubernetes on unraid. I was wondering why unraid didn't have maybe a kubernetes plugin or easy way to install it. I didn't have much issue just manually installing kubectl and setting up a simple minikube cluster on my unraid machine. I have a simple need to run an app that is a container image and I plan to use helm to facilitate CI/CD with gitlab. 

 

It looks like you chose to use a VM for kubernetes, but that overhead isn't really needed. I'm new to kubernetes but experienced with docker. So I thought I would follow up on the discussion of k8s on unraid, seems like a good fit. But at the same time the more I learn about it, the more I realize perhaps k8s is superior and the entire ecosystem of docker templates is really just a clone of helm charts.

  • Like 1
Link to comment
  • 2 months later...
  • 3 weeks later...
  • 2 months later...
  • 1 month later...
  • 4 weeks later...

Thanks for sharing this guide! I followed it back in April, finished the guide and made the cluster my own dev environment, integrating Drone CI and Gitea into it. Unfortunately I stopped playing around with it in May when I went on vacation. Finally picking it back up. I have to say, this guide is very good! Thanks for sharing it.

 

One suggestion though, I remember when I worked through it, it would have been very helpful to SSH into the VMs instead of doing it all over VNC. One big hiccup was copying the token/cert that gets generated and used for the worker node. I had to hand type it all in, squinting at VNC hoping I typed each letter correctly. I think I made a few attempts before getting it right. It would have been much easier to select, copy and paste the printed value instead, but VNC in the browser didn't let me.

 

Any suggestions on networking to the kubernetes service? The last thing I think I was looking into was load balancing in my home network, but that didn't seem to be a thing or easily achievable. Best bet I'm thinking was set up nginx and use reverse proxy to forward commands to the cluster.

 

Also, any guidance for updating packages? I'd like to update things, but a little nervous as the nodes need to be the same version and in sync.

 

Lastly, good work! If you do containerd, I'd probably give that a try at some point.

  • Thanks 1
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...