Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ==== 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 <code>sudo apt install open-vm-tools-desktop</code> 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) <code> sudo swapoff -a </code> If you want to permanently deactivate swap - edit /etc/fstab so it looks similar to this - note the hash sign! <code># /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). # # <file system> <mount point> <type> <options> <dump> <pass> # / 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 </code> Install curl <code> sudo apt install curl </code> Install solution package from Linux Foundation (this saves a lot of time and prevents you being stuck somewhere when installing necessary packages by hand) <code> wget https://training.linuxfoundation.org/cm/LFD259/<some_file>.tar.xz ... </code> 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 === <code> find $HOME -name k8scp.sh -exec cp {} . \; bash k8scp.sh </code> === Setup of worker node === <code> find $HOME -name k8sSecond.sh -exec cp {} . \; bash k8sSecond.sh </code> Last modified: 2021/11/27 16:51