Rsyslog is a powerful, secure and high-performance log processing system which accepts data from different types of source (systems/applications) and outputs it into multiple formats

It has evolved from a regular syslog daemon to a fully-featured, enterprise level logging system. It is designed in a client/server model, therefore it can…

1. Copy Data From a Pod to Local Machine:

kubectl cp <some-namespace>/<some-pod>:/tmp/foo /tmp/bar
and just vice versa i.e. from local machine to POD
kubectl cp /tmp/bar <some-namespace>/<some-pod>:/tmp/foo

2. Display Pod Details Only three Columns (NodeName, POD name, Name space)

kubectl get pods --all-namespaces --output ‘jsonpath={range .items[*]}{.spec.nodeName}{“ “}{.metadata.namespace}{“\t “}{}{“\n”}{end}’

3. Display…

/boot partition cannot be an LVM devices is because when the system boots, it first searches for /boot/vmlinuz, and at this time, lvm cannot be recognized because there is no module for lvm loaded at this time. So, the /boot partition can not be a lvm partition.

Note: this document…

Registering a Runner is the process that binds the Runner with a GitLab instance.

Before registering a Runner, you need to first:

  • Install it on a (bare metal server or on docker container ) server separate than where GitLab is installed on
  • Obtain a token for a shared or specific…

Ansible ad hoc commands are great for tasks you repeat rarely. For example, you could execute a quick one-liner in Ansible without writing a playbook. An ad hoc command looks like this:
$ ansible [pattern] -m [module] -a "[module options]"

Some Examples are given Below:

  1. Ansible ad-hoc against ‘all’ hosts…

Lens is the only IDE you’ll ever need to take control of your Kubernetes clusters. It’s open source and free

Download Link:

Click and install it on local machine.

Click on add new cluster and enter the kubeconfig path or copy paste kubeconfig file and select the cluster you need to check in GUI.

Enjoy !!!

  1. $ kubectl config get-contexts : View list of clusters

2. $ kubectl config current-context : To view current running version

3. $ kubectl config use-context <context-name> : Switch to cluster or context

4. $ kubectl get ns : Generate a plain-text list of all namespaces

5. $ kubectl get po…

Kind is a tool built for running local Kubernetes clusters using Docker containers as nodes. kind was primarily designed for testing Kubernetes itself, but it is actually quite useful for creating a Kubernetes environment for local development, QA, or CI/CD

A fully functioning environment using kind includes a few different…

  1. Open VirtualBox
  2. Right-click your VM, then click Settings
  3. Go to Shared Folders section
  4. Add a new shared folder
  5. On Add Share prompt, select the Folder Path in your host that you want to be accessible inside your VM.
  6. In the Folder Name field, type shared
  7. Uncheck Read-only and Auto-mount, and…

  1. Create web and DB images Seperately. So create seperate Dockerfiles for WEB and DB


  1. Take DB backup and put it in same place with DB dokcerfile
FROM mariadb:latest as builder# That file does the DB initialization but also runs mysql daemon, by removing the last line it…


The Senior Devops

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store