tech

Scale Nodes in Kubernetes Cluster using Kubespray

This post is will provide steps to add a new node to the Kubernetes cluster using Kubespray.   The below snippet shows the existing node in the cluster, note that I have one master and two worker nodes.  kubectl get node -o wide NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME kube-master Ready control-plane,master …

Scale Nodes in Kubernetes Cluster using Kubespray Read More »

How to set up Remote SSH to any machine behind the firewall

In this post, the method to remote SSH into a Linux machine is covered. This is especially helpful when you do not wish to open any Port open in your ISP-provided Router configuration. Using this method, you can SSH into your home machine from any computer on the internet. You would not need any fancy …

How to set up Remote SSH to any machine behind the firewall Read More »

Curl not working when executed by a particular user

In one of my Linux node, I was not able to use curl command if executed by a particular user(“root”). Strange enough, it was working when executed using some other user. If you face similar issue try to follow the following strategy to debug the issue: When executed with non-root User: curl google.com -I HTTP/1.1 …

Curl not working when executed by a particular user Read More »

How to check the IP address reputation programmatically

Countless predators are sitting in the wild to spam or attack the network. So sometimes, before trusting a random IP address on the Internet, it’s a good idea to check its reputation. There are multiple methods to check the details and reputation of an IP address, but here we are covering only one via “www.abuseipdb.com.” …

How to check the IP address reputation programmatically Read More »

Find the installed Hardware info in Ubuntu

Like listing the directories and files using the “ls” command, we can list hardware in the system using the “lshw” command. Various filters are available to filter the result of the “lshw” command based on the type of hardware, like disk, processor, etc. Please see the below examples and follow along. Note that to use …

Find the installed Hardware info in Ubuntu Read More »

Get the Node Resource usage in Kubernetes – no plugin

Resources like CPU, Memory, Disk are critical for the performance of the node and the pods(containers) running on it.  You can read a detailed post about these resources here. In this post, we will cover the commands for printing the resources in a short and meaningful format.  A concise yet meaningful format is helpful for …

Get the Node Resource usage in Kubernetes – no plugin Read More »

How to run a security scan on a Kubernetes Cluster

In this post, we will run a security scan on a Kubernetes cluster using Kubescape. Some time back, NSA has released the Kubernetes cluster hardening guide; this guide provides several DOs and DON’TS. The problem is manually running the guide and testing the cluster for each recommendation is a big task. Here comes the need …

How to run a security scan on a Kubernetes Cluster Read More »

How to provision Dynamic Volumes(NFS) on a home lab?

This post will do all the steps required to set up dynamic volume provisioning using NFS. We will be using a fresh Kubernetes cluster with no storage class provisioned. Unlike cloud environments, there are no storage provisioners available in the home environment by default. Sure, you can have it, but you need to configure it …

How to provision Dynamic Volumes(NFS) on a home lab? Read More »

Scroll to Top