Skip to content

Instantly share code, notes, and snippets.

@clemenko
Created September 11, 2024 18:41
Show Gist options
  • Save clemenko/dd0cf905fa0819f12cc88a6df7b95963 to your computer and use it in GitHub Desktop.
Save clemenko/dd0cf905fa0819f12cc88a6df7b95963 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# @clemenko
# rke one liner
curl -sfL https://get.rke2.io | sh - && systemctl enable --now rke2-server.service && echo "export KUBECONFIG=/etc/rancher/rke2/rke2.yaml PATH=$PATH:/usr/local/bin/:/var/lib/rancher/rke2/bin/" >> ~/.bashrc && source ~/.bashrc && curl -sfL https://get.hauler.dev | bash && curl -s https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
yum install -y nfs-utils cryptsetup iscsi-initiator-utils; systemctl enable --now iscsid; helm repo add longhorn https://charts.longhorn.io --force-update; helm upgrade -i longhorn longhorn/longhorn -n longhorn-system --create-namespace
@melroy89
Copy link

melroy89 commented Nov 8, 2024

Just a shout-out to @clemenko ! Thank you so much for your help and videos into K8s, RKE2, Rancher and Longhorn and alike.. And your positive energy!

I will use Ubuntu Server most likely though, unless you can convince me to use Rocky Linux for all my VMs.

@clemenko
Copy link
Author

clemenko commented Nov 8, 2024

My customers use RHEL. Rocky is next best thing. I actually use Ubuntu for my webservers. So pick your weapon!

Thanks for the kind words.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment