https://rancher.com/ logo
#rke2
Title
r

red-waitress-37932

11/01/2022, 11:04 AM
RKE2 exists. does this mean I should use RKE2 instead of RKE1 if I start out fresh?
h

hundreds-hairdresser-46043

11/01/2022, 12:22 PM
RKE1 was brilliant! RKE2 is something to get used to and the future of RKE if you want a personal opinion. learning curve initially is a bit higher the RKE1 and there is a LOT of small things that will mess you around. Community support is limited (from what I have seen so far). You would be better of paying for support. But other then that - starting with RKE2 is a good choice when starting fresh. We swapped over to RKE2 about 14 months ago and we are not sorry
r

red-waitress-37932

11/01/2022, 12:34 PM
I have not used RKE1 so far
so I have no frame of reference 🙂
I've been using k3os so far. some of the concepts used there will probably have made it into rke2
is there an RKE3, btw?
h

hundreds-hairdresser-46043

11/01/2022, 12:51 PM
RKE2, also known as RKE Government, is Rancher's next-generation Kubernetes distribution. So no RKE2 is the newest version. The main differences here is RKE1 is docker based and RKE2 containerd based (embedded) due to the Kubernetes dropping docker support -> https://acloudguru.com/blog/engineering/kubernetes-is-deprecating-docker-what-you-need-to-know so this is why we upgraded
r

red-waitress-37932

11/01/2022, 1:16 PM
that sounds good actually. since I started out with k3os, suddenly having docker on my kubernetes nodes seems a bit weird 😄
I think I'll go with RKE2. Just gotta settle on distro to go below that. I'm using rancher/rancher manager btw, to set up the cluster. I think I saw the option to use RKE2 somewhere.
h

hundreds-hairdresser-46043

11/01/2022, 1:58 PM
Personally we are not using the web GUI. The OS itself pretty much can be anything of choice. tested on ubuntu 19.x, oracle linux 7/8, rocky linux 8, redhat 8 . The RL/RHEL/OEL 9 OS's act weird. so dont think it supports those OS's yet
r

red-waitress-37932

11/01/2022, 1:59 PM
I'm avoiding RPM distros like the plague anyway
we do have some SLES12 machines though, since we have to use that for some stuff
h

hundreds-hairdresser-46043

11/01/2022, 1:59 PM
There is 3 ways to install it, using their shell script (might want to start with that one until you are familiar with the ins and outs), the TAR method and the YUM method. The YUM method obviously only works on RHEL or RHEL clones.
r

red-waitress-37932

11/01/2022, 2:00 PM
oh I'm not going to install it manually
I'm gonna use the web UI for that
I'm hoping that's a thing 😄
h

hundreds-hairdresser-46043

11/01/2022, 2:00 PM
You just made a SUSE engineer smile somewhere hahaha btw SUSE is RPM based 🙂
r

red-waitress-37932

11/01/2022, 2:00 PM
i know
I said we have to use it. that's not an endorsement 🙂
h

hundreds-hairdresser-46043

11/01/2022, 2:01 PM
the CLI method is really quick - but understand the need for the UI. We have no need for it because we use OpenLens from our desktops instead
r

red-waitress-37932

11/01/2022, 2:01 PM
I need something that's repeatable, most of all
and entering stuff on a VM console is really not that
h

hundreds-hairdresser-46043

11/01/2022, 2:03 PM
that is why we use the CLI method. I made ansible scripts that build it - so no need for a GUI. Installs real quick once you understand how RKE2 works
also our builds a agnostic in nature - any linux OS will do. since we dont always know what our clients will prefer
r

red-waitress-37932

11/01/2022, 2:04 PM
ok maybe i dont understand how rancher works yet, here's what I gather from my experience so far is 100% the "Boot2Docker (Legacy)" option.
h

hundreds-hairdresser-46043

11/01/2022, 2:05 PM
if you want to go the ansible route - here is what someone else did. I did not use it, but i did get some ideas to make my own scripts simpler -> https://github.com/lablabs/ansible-role-rke2
r

red-waitress-37932

11/01/2022, 2:05 PM
but you can give it a VM template instead of using boot2docker. I was going to do that. I assume it installs docker+rke2 on that and then joins it to a cluster, right?
the ui, that is
h

hundreds-hairdresser-46043

11/01/2022, 2:07 PM
So yes. We use VMWare and proxmox. The machine only needs to be accessible via SSH then your golden. Can even do this is Google, AWS, DigitalOcean etc
as far as i know (about the UI) since i dont use it. it needs docker (or podman) on a separate host. it will then orchestrate the build for you
r

red-waitress-37932

11/01/2022, 2:08 PM
what build?
h

hundreds-hairdresser-46043

11/01/2022, 2:08 PM
cluster - the rancher UI will actually build you your cluster
r

red-waitress-37932

11/01/2022, 2:09 PM
from VM templates, though, right?
h

hundreds-hairdresser-46043

11/01/2022, 2:09 PM
no it does not build you VM's - the VM's need to already be running
r

red-waitress-37932

11/01/2022, 2:09 PM
not sure how docker factors in, other than to host the rancher UI's server
h

hundreds-hairdresser-46043

11/01/2022, 2:09 PM
using "what ever you want" to build from templates. I am using ansible to spin up VM's from a template
r

red-waitress-37932

11/01/2022, 2:10 PM
I'm using rancher manager for that right now 😄
it's using boot2docker to install them
works really well, it's just too old (2019), so it wont work with our nexus, which uses certs from letsencrypt, which had a recert in 2021
https://developer.hashicorp.com/packer/plugins/builders/vsphere I have some prior experience with packer. maybe I'll use that
that way I'd have something I could actually check into Git
h

hundreds-hairdresser-46043

11/01/2022, 2:12 PM
initially we used foreman to build the VM on VMware. I have never used packer before - or rather i could not get it to do what i wanted hahaha
There is packer, terraform and ansible (even powershell if you are desperate)
r

red-waitress-37932

11/01/2022, 2:13 PM
well to be fair my experience with packer is limited to modifying premade scripts called "bento" to do what I want 🙂
h

hundreds-hairdresser-46043

11/01/2022, 2:13 PM
I am rather likening terraform lately
r

red-waitress-37932

11/01/2022, 2:13 PM
h

hundreds-hairdresser-46043

11/01/2022, 2:14 PM
ahh chef, we used to use puppet. but everything is ansible now - so adding more scripts and more stacks is not a option for us
r

red-waitress-37932

11/01/2022, 2:15 PM
this is not chef. this is just from the chef team
we're not using chef. we're using puppet
h

hundreds-hairdresser-46043

11/01/2022, 2:16 PM
ooh then i must check it out - also seems like it has a single binary you can run - so script-able via something like ansible
r

red-waitress-37932

11/02/2022, 12:00 AM
I found this: https://github.com/David-VTUK/Rancher-Packer I got it to create and turn on an Ubuntu 22.04 VM, but it's stuck while booting, so there's more work to do. Might be related to a DHCP problem, gotta wait until tomorrow until I can have that fixed.
n

nutritious-tomato-14686

11/04/2022, 4:57 PM
Coming into this late, Rancher 2.6.x supports provisioning RKE2 clusters on existing nodes. See https://docs.ranchermanager.rancher.io/pages-for-subheaders/use-existing-nodes
r

red-waitress-37932

11/07/2022, 2:50 PM
thanks, but that's the opposite of what I want 🙂 I got it working now, though. turns out it wasn't a DHCP problem, it was just that packer instructed the VM to talk to 172.17.something, i.e. the docker-internal IP of the gitlab CI container packer was running in. solved that by switching to the cloud-init default of using an ISO image to pass the config.
5 Views