MutantMahesh's Blog

Seeking to know.

May 9, 2021 - 1 minute read - Raspberry PI

Disable Swap on Raspberry PI cluster

I had the requirement of disabling the Swap memory on Raspberry PI because this is one of the requirement to run the Kubernetes on Raspberry PI. As per the Kubernetes official documentation Kubernetes does not supports the Swap . By following the initial instruction given on most of the blog post I disabled the swap by running the command: $ sudo swapoff -a But I noticed each time I reboot the Raspberry PI it will reenable the swap.

May 9, 2021 - 1 minute read - Multipass MacOS Ubuntu

How to recover from Multipass Instance stopped while starting error

If you are not able to start the multipass instance either because of your system crashed or due to power failure and you are not able to get much detail about the error with the -vvvv verbose option. You may be getting the output like this: $ multipass start <INSTANCE-NAME> -vvvv start failed: The following errors occurred: Instance stopped while starting Try getting the PID of multipassd and kill that process:

May 9, 2021 - 2 minute read - Raspberry PI Kubernetes MacOS Ubuntu

My journey of running Kubernetes cluster on Raspberry PI and Mac

This is going to be series of posts where I am going to share my learning journey of running kubernetes cluster on Raspberry PI cluster. How to boot Raspberry PI from usb drive (by changing boot order with raspi-config command.) How to permanently disable the swap in raspberry pi Install the docker and kubernetes on raspberry pi How to run kubernetes cluster on Raspberry PI (using kubeadm init command) How to join the running kubernetes cluster on Raspberry PI (from another node using kubeadm join command) How to install the kubernetes-dashboard How to generate the kubernetes dashboard login token (with kubectl command) How to set the VirtualBox as backend driver for the multipass on mac How to launch the VM on MacOs with specific network driver with Multipass (using the multipass launch command) How to ssh into VM instance running by multipass from another host (Using ssh-copy-id command, link github issue) How to remote login into Raspberry pi with Remote desktop client using the VNC How to give multiple hostnames to a single host in <code>/etc/hosts</code> file How to access multipass instance with Remote Desktop with xrdp How to access multipass instance with Remote Desktop client on Mac How to recover from Multipass Instance stopped while starting Tools Below is the list of Hardware and Software tools I used.

Apr 22, 2021 - 2 minute read - Terraform Hashicorp DevOps

Terraform reference dependy resource value in dependent resource

Requirement I was having a requirement of migrating all the configuration from one cloudflare domain (being used in production) to another cloudflare domain in another account. I found one interesting tool called cf-terraforming . This tool allows you to generate the terraform code for existing domain configuration. There are certain limit though, this tools is not able to generate terraform code for every possible resource in cloudflare. The list of supported resources is mentioned on above link.

Apr 20, 2021 - 1 minute read - Smart Content Cloudflare Drupal-Cache

Exclude Smart Content Block from Cloudflare cache

Setup: A Drupal 8 website configured with smart_content module along with cahcing enabled Drupal website using Cloudflare for caching, Make sure caching rule at Cloudflare is enabled. Caching Rules setup at Cloudflare For* Cache Level -> Bypass For* Cache Level -> Cache Everything The second rule should be below the rule one, in priority order. Disable cache for smart content ajax route namespace Drupal\mymodule\Routing; use Drupal\Core\Routing\RouteSubscriberBase; use Symfony\Component\Routing\RouteCollection; class RouteSubscriber extends RouteSubscriberBase { /** * {@inheritdoc} */ protected function alterRoutes(RouteCollection $collection) { // Find the route you need .