Tech bytes
Create custom docker image, publish and use from private gitea repo
Build a custom docker image For eg, added custom configs to apache Create custom Dockerfile Here it will pull latest apache and copy httpd.conf and mka-site.conf to the build custom build image.Make sure you have customized httpd.conf and mka-site.conf files in “apache-config/” dir Build image List images to see new image Enable docker packages on […]
Kubernetes horizontal scaling
Install metric server on controller node See https://github.com/kubernetes-sigs/metrics-server/releases https://github.com/kubernetes-sigs/metrics-server to download compactible versions Obtain metric server YAML file Apply metric YAML on controller Verify to see if metrics-server pod is running Note pod replia count before scaling Apply horizontal scaling to mysql database pod Create following YAML mentioning min, max replicas, CPU, memory benchmarks Appy it on controller […]
Kubernetes build and configuration guide
Basic cluster build and configuraion guide Covers Kubernetes cluster build with: OS and specs (tested on) Create three VMs and assign fixed IPs For eg: Set hostname on each VM Update /etc/hosts file on each VM Update each VM Disable SWAP on each VM Install Containerd on All Nodes Add Kubernetes Package Repository Adjust version […]
Starting with Ansible
This article covers basics of ansible based automation Structure For the test/demo setup following structure is prepared Inventory preparation Let us see details of following inventory file: “home_hosts” is just a host group name to bundle set of hosts. You can have multiple groups. For eng say “datacentre1-hosts”, “datacentre2-hosts” “hosts” is a keyword and is […]
Opensearch fluentd stack
After elasticsearch license changes, opensearch has forked out with Apache 2.0 opensource license in 2021. This is maintained by Amazon web services (AWS). In this article, we will walk through building opensearch stack using opensearch, opensearch-dashboards and fluentd. We are using debian 13 trixie, opensearch, opensearch-dashboards 3.10, fluentd 5.0.7. Obtain opensearch, opensearch-dashboards from https://opensearch.org/downloads/ and […]
Enable LDAP authentication on elasticsearch
Before trying it out make sure you have appropriate licenses If you have license, follow these steps in elasticsearch.yml add following LDAP config LDAP binddn user password is not part of config and must be defined in elasticsearch keystore Check keystore list
Ingest Kafka messages into EFK stack
In the article we will see how can we take deep dive into messages going on a Kafka bus. For eg if you have a large enterprise grade solution, and want to capture a copy of messages going to and fro within systems without any additional development. To achieve this, we will use fluentd to […]
Python based CLI automated test for Linux and network
On big networks or data centres where you have run variety of command line tests in minutes, then this solution can help you. Here is the json config. Python code: Sample test cases: Test Results: Trace logs:
Enable web proxy on grafana for datasources, MS Teams notifications etc
On RHEL and Centos, append proxy to following file Restart grafana Now you should able to use this proxy for data sources and notifications.
Expand disk space of a Linux disk partition on LVM
Shutdown Linux VM and increase disk volume from VM “edit settings” option Check disk volume map using fdisk Add assigned space to the disk volume map Resize volume to make it effective Verify updated space