Skip to content

Instantly share code, notes, and snippets.

@saiyam1814
Last active April 22, 2020 18:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saiyam1814/a72f76b9278c1ceb759016e5dee6cb0a to your computer and use it in GitHub Desktop.
Save saiyam1814/a72f76b9278c1ceb759016e5dee6cb0a to your computer and use it in GitHub Desktop.
This is the gist for setting up k3s using k3sup on Azure
# 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