Skip to content

Instantly share code, notes, and snippets.

@zackbradys
Last active June 7, 2024 17:51
Show Gist options
  • Save zackbradys/88096b6c5b8a77ff30386ea065068cf8 to your computer and use it in GitHub Desktop.
Save zackbradys/88096b6c5b8a77ff30386ea065068cf8 to your computer and use it in GitHub Desktop.
# enable container-selinux
amazon-linux-extras enable selinux-ng
# create os release file
echo "2023" >> /etc/amazon-linux-release
# download and install rke2
curl -sfL https://get.rke2.io | INSTALL_RKE2_CHANNEL=v1.27 INSTALL_RKE2_TYPE=server sh -
# enable and start rke2
systemctl enable rke2-server.service && systemctl start rke2-server.service
# verify node is ready
export KUBECONFIG=/etc/rancher/rke2/rke2.yaml
/var/lib/rancher/rke2/bin/kubectl get nodes
@zackbradys
Copy link
Author

Thank you for the additional commands! @ethanchowell

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