Deploy kubernetes cluster with multipass

 multipass launch --name kms --cpus 1 --mem 1024M --disk 3G  16.04
 multipass launch --name n1 --cpus 1 --mem 1024M --disk 3G 16.04
 multipass launch --name n2 --cpus 1 --mem 1024M --disk 3G 16.04
 multipass exec kms -- /bin/bash -c "curl -sfL https://get.k3s.io | K3S_KUBECONFIG_MODE="644" sh -"

 multipass shell kms 
 sudo cat /var/lib/rancher/k3s/server/node-token

 # copy the token and ip

multipass exec n1 -- /bin/bash -c "curl -sfL https://get.k3s.io | K3S_URL=https://10.177.88.131:6443 K3S_TOKEN=K1028998dfd8d7783addfb125df567de72d5f102146d0635fc1ab68d909092fa8be::server:533cc6851a98e033b1fdb8af4b7ba06c sh -"

https://www.techrepublic.com/videos/how-to-deploy-a-kubernetes-cluster-with-multipass/#ftag=RSS56d97e7

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.