https://rancher.com/ logo
#general
Title
# general
a

adamant-kite-43734

01/24/2023, 3:53 PM
This message was deleted.
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
Copy code
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
Copy code
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
4 Views