Last active
June 7, 2024 17:51
-
-
Save zackbradys/88096b6c5b8a77ff30386ea065068cf8 to your computer and use it in GitHub Desktop.
This file contains 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
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For anyone looking at yum based installs I had luck with adding
amazon-linux-extras enable epel yum clean all
To get the right container-selinux packages