TABLE OF CONTENT
1. Introduction2. VirtualBox 3. VirtualBox 4. Microk8s are set up on Ubuntu 20.045. Clustering Microk8s Instances6. Microk8s Dashboard Setup7. Microk8s8 EFK Stack Configuration Conclusion 9. Conclusion 9. Introduction
Microk8s can be used to automate containerized application management, deployment and scaling. It is a CNCF-certified Kubernetes upstream Kubernetes deployment, which runs entirely on our workstation.
Learn more about 8 Key Attributes Modern Cloud-Native Architecture
It runs all Kubernetes services directly and packs the entire library. MicroK8s does not require a virtual machine. This is in contrast to tools like Minikube which spins up a local machine for the Kubernetes cluster. This feature also has its flaws. Microk8s needs Linux (distributions support snap), while tools such as minikube provide support. If we want to deploy microk8s on non-Linux operating systems, we will need to install Linux on top.
This is a Beginner’s Guide to Kubernetes with Real-Time Examples.
2. VirtualBox: Setting up
We use VirtualBox to install Ubuntu 20.04 on top Windows 10. You can either use an existing Ubuntu machine, or you can spin up a Ubuntu server on the cloud.
You can access the VirtualBox downloads page via a browser. Click on “Windows Hosts” to start the download of the installer file. Start the installation by selecting the installer file from your browser downloads folder.
Follow the instructions on the screen to complete the installation. Give the appropriate access permissions. Click Finish to open Oracle VM VirtualBox Manager
3. VirtualBox: Ubuntu 20.04 Set-up
Visit the Ubuntu downloads page from a browser: https://ubuntu.com/download/desktop and click ‘Download.’ Save the file
Open Oracle VM VirtualBox Manager, and click on ‘New.
Follow these steps:* Name your VM. * Select the VM Machine Folder to save all files. * Select Type as ‘Linux.’ * Click on Next.
Choose the right RAM for your virtual machine. Ubuntu recommends 4GB RAM. Make sure there is enough RAM for the host system’s processes. Next.
Select ‘Create virtual hard disk now. Click Create
Select the default Virtual Hard drive file type. Other options are also available. Click Next
Select ‘Dynamically Allocated’ as the storage option for your virtual hard disk. Next
Choose the file location and file size. Ubuntu recommends that you have 25 GB free hard drive space. Click ‘Create.
Select the configured VM (Ubuntu20.04 for our case) from the main window of the ‘Oracle VM VirtualBox Manager’. Click ‘Settings
Click on Storage>. Select the ‘Optical Drive’ icon on Controller: IDE
Click Add to select the downloaded Ubuntu 20.04 iso file. Click Open and choose Choose. Click OkOptionally you can adjust the display settings to increase video memory. If you experience significantly slower internet speeds inside the VM, you can also go to Network settings to modify Network Adapter Attached To Bridged Adapter.
Click on Show to select the virtual machine. Click on Show. Wait for the disk scanning to be completed before proceeding with the installation.
Click Install Ubuntu
Select the keyboard layout. Click on Continue. Select ‘Normal installation’ or ‘Minimal installation’. You can also tick the boxes to download updates and install third-party software. Continue
If you wish to create multiple partitions, click on ‘Erase disk and install Ubuntu’. Click Install N
Kubernetes Cluster Using Microk8s On Ubuntu
TABLE OF CONTENT