Skip to content

Instantly share code, notes, and snippets.

View aemadrid's full-sized avatar

Adrian Madrid aemadrid

  • TimeWorxs, LLC
  • Salt Lake City, UT
View GitHub Profile

Using Vagrant with Multi-Node MicroK8S to experiment with Kubernetes

This script (using Vagrant) is used to build a pair of Ubuntu based virtual machines that have the MicroK8S setup of Kubernetes.

It also installs docker, and sets up aliases for kubectl in line with the MicroK8S documentation.

Please note that this script relies on the fact that Vagrant transfers files in /vagrant to the host file system, which we can then use to setup the second node.

class MyIO
def initialize(filename)
fd = IO.sysopen(filename)
@io = IO.new(fd)
@buffer = ""
end
def each(&block)
@buffer << @io.sysread(512) until @buffer.include?($/)

Keybase proof

I hereby claim:

  • I am aemadrid on github.
  • I am aemadrid (https://keybase.io/aemadrid) on keybase.
  • I have a public key ASBJwRa6Jmea2c9FcpPHdEDjqNmHj0Ucl3FSPe0hOijvwwo

To claim this, I am signing this object: