Last active
April 22, 2020 18:58
-
-
Save saiyam1814/a72f76b9278c1ceb759016e5dee6cb0a to your computer and use it in GitHub Desktop.
This is the gist for setting up k3s using k3sup on Azure
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
# Create 2 VMS and have the networking opend 22,80,443,6443 with user as app | |
# ssh into the instance that you want to make the master for k3s and Run Following commands. Alsocopy the key in /root/.ssh/id_rsa | |
# SERVER_IP = ip address of master vm | |
# AGENT_IP = ip address of worker vm | |
curl -sLS https://raw.githubusercontent.com/alexellis/k3sup/master/get.sh | sh | |
Export SERVER_IP=ipaddr | |
Export USER=app | |
Export AGENT_IP=ipaddr | |
k3sup install --ip $SERVER_IP --user $USER | |
export KUBECONFIG=`pwd`/kubeconfig | |
kubectl get nodes | |
k3sup join --ip $AGENT_IP --server-ip $SERVER_IP --user $USER | |
kubectl get nodes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment