https://rancher.com/ logo
Title
s

stale-pillow-58355

01/24/2023, 3:53 PM
Hellow Rancher-Users, A quick question. Is it possible to install the rancher-server completely with a single-node setup? Like running the server within a docker-container for testing-purpose? Theoretically, It should be possible single-node clusters are possible. Hence running the rancher-server app on it too, correkt? The docs I found (https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-cluster-setup/rke2-for-rancher#1-install-kubern[…]p-the-rke2-server) states implicitely, that the rancher-server setup requires at least 2 vms (server and node)
s

stale-pillow-58355

01/24/2023, 4:11 PM
Hey @agreeable-oil-87482 thanks for this link, but i am already aware of it. Im seeking for another option installing the rancher-server without docker that also bases on rke2, but still support a single-node setup. Afaik using k3s is possble for a single-node setup, right? Docs https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-cluster-setup/k3s-for-rancher Analogically to this, does a rke2 single-setup alos exist?
a

agreeable-oil-87482

01/24/2023, 4:14 PM
Yeah just fire up a single node rke2 cluster and install Rancher through Helm
s

stale-pillow-58355

01/24/2023, 4:23 PM
Thanks for the tip! Im looking for some resources firing up a cluster based on rke2. Just found this so far https://docs.rke2.io/install/methods But how to create a cluster based on it?
a

agreeable-oil-87482

01/24/2023, 4:24 PM
Run the script - it'll turn a node into an rke2 cluster
s

stale-pillow-58355

01/24/2023, 4:24 PM
AAAAH
@agreeable-oil-87482 Probably, I don't get it fully... I ran the command accordingly to docs
curl -sfL <https://get.rke2.io> | sh -
Then tried to access the cluster as documented here --> https://docs.rke2.io/cluster_access It seems there is no file "/etc/rancher/rke2/rke2.yaml". There is also no directory "/etc/rancher" Do I miss a step?
a

agreeable-oil-87482

01/24/2023, 5:12 PM
curl -sfL <https://get.rke2.io|https://get.rke2.io> | sh -
systemctl enable rke2-server.service
systemctl start rke2-server.service
# Wait a bit
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/var/lib/rancher/rke2/bin
kubectl get nodes
s

stale-pillow-58355

01/24/2023, 5:15 PM
Thanks mate!
👍 1