==== Kubernetes for Developers (LFD259) ==== Here is the documentation of how I've implemented the lab exams. First, get your environment up and running. My approach was to set-up a virtual machine using kubuntu-18.04 - because [[https://kubuntu.org|Kubuntu]] is my working environment at home. After the first time failure with Ubuntu I've noticed that it is necessary to install sudo apt install open-vm-tools-desktop within the guest OS (otherwise copy and paste from host does not work). Kubuntu does not have this problem. === Before you execute any of the provided shell scripts the following steps have to be performed which are not covered by the script === Turn-off swap (or the shell scripts will fail) sudo swapoff -a If you want to permanently deactivate swap - edit /etc/fstab so it looks similar to this - note the hash sign! # /etc/fstab: static file system information. # # Use 'blkid' to print the universally unique identifier for a # device; this may be used with UUID= as a more robust way to name devices # that works even if disks are added and removed. See fstab(5). # # # / was on /dev/sda1 during installation UUID=c3336ebf-e804-4d83-8ff2-701fa069dc68 / ext4 errors=remount-ro 0 1 #/swapfile none swap sw 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0 Install curl sudo apt install curl Install solution package from Linux Foundation (this saves a lot of time and prevents you being stuck somewhere when installing necessary packages by hand) wget https://training.linuxfoundation.org/cm/LFD259/.tar.xz ... Before executing shell scripts provided by Linux Foundation make a snapshot of your VM having the OS ready and clone the VM - remember - you will need a main node and a worker node. You better have a clone of the basic setup at hand, you might need it. === Setup of main node === find $HOME -name k8scp.sh -exec cp {} . \; bash k8scp.sh === Setup of worker node === find $HOME -name k8sSecond.sh -exec cp {} . \; bash k8sSecond.sh