Created
September 11, 2024 18:41
-
-
Save clemenko/dd0cf905fa0819f12cc88a6df7b95963 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
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
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.