Skip to content

Latest commit

 

History

History
60 lines (41 loc) · 1.64 KB

02-compute-resources.md

File metadata and controls

60 lines (41 loc) · 1.64 KB

Compute Resources

Because we cannot use VirtualBox and are instead using Multipass, a script is provided to create the three VMs.

  1. Run the VM deploy script from your Mac terminal application

    ./deploy-virtual-machines.sh
  2. Verify you can connect to all VMs:

    multipass shell controlplane01

    You should see a command prompt like ubuntu@controlplane01:~$

    Type the following to return to the Mac terminal

    exit

    Do this for the other controlplane, both nodes and loadbalancer.

Deleting the Virtual Machines

When you have finished with your cluster and want to reclaim the resources, perform the following steps

  1. Exit from all your VM sessions

  2. Run the delete script from your Mac terminal application

    ./delete-virtual-machines.sh
  3. Clean stale DHCP leases. Multipass does not do this automatically and if you do not do it yourself you will eventually run out of IP addresses on the multipass VM network.

    1. Edit the following

      sudo vi /var/db/dhcpd_leases
    2. Remove all blocks that look like this, specifically those with name like controlplane, node or loadbalancer

      {
          name=controlplane01
          ip_address=192.168.64.4
          hw_address=1,52:54:0:78:4d:ff
          identifier=1,52:54:0:78:4d:ff
          lease=0x65dc3134
      }
      
    3. Save the file and exit

Next: Client tools
Prev: Prerequisites