About The Author

2017, December, 04

kubernetes with jenkins for CI/CD

 A development methodology of the developer integration to deliver automation builds

  • Seamless integration of development ,testing,staging and production
  • Encourages hands-free , automated deployments
  • with every commit results in a new build
  • Important aspect of DevOps

for kubernetes install click here

for docker details click here

Based on try fast and fail fast paradigm,

 

 

Read More
2017, December, 01

MongoDB StatefulSets in kubernete cluster with NFS PV

 
###for NFS without using any cloud we have to setup the pv-volume manually######
Manual steps to deploy a replica set 
  1. Provision multiple VMs
  2. Provision multiple Disks
  3. Install MongoDB in each VM
  4. configure MongoDB
  5. Create Replica Set
  6. Initiate Master and Replicas by logging into pod
  7. Hardcode a bunch of IPs in random config files
  8. Try to add another replica 
  9. vm down ip changes?????
Docker lets you skip installation upto step 4
Kubernetes skip remaining 5,6,7 steps.
Kubernetes simply the maintenances (ie let computer do the stuff at night)
  • Pods 
    • Group of one or more container that share localhost and are alwasys schedule together.
  • Deployments
    • specify how many pods to run and what pods need , and the deployment takes cate of rest
  • Services
    • A stable endpoint that provides service discovery and load balancing
Read More
2017, November, 29

how to setup Kubernetes cluster on servers running on CentOS 7 (Bare-metal installation)

how to setup Kubernetes cluster on servers running on CentOS 7 (Bare-metal installation) as well as deploy add-on services such as DNS and Kubernetes Dashboard.

Prerequisites:You need at least 2 servers for setting Kubernetes cluster. For this blog, we are using three servers to form Kubernetes cluster. Make sure that each of these servers has at least 1 core and 2 GB memory.

Master   172.16.106.140
Node1/Minion1 172.16.106.141
Node2/Minion2 172.16.106.142

 

Read More
2017, November, 13

docker private registry with ngix http to https and persistant volume mount

As the kubernetes cluster with dockerimages pull it only works with ssl server. We need to push/pull the docker images from our private local repo . And this documentation follows the complete steps to configure  priviate docker repo within kubernetes with ssl termination.
 
 
[root@docker priviate-registry]# cat docker-compose.yml
version: '2'
services:
  revp:
    image: nginx:latest
    volumes:
      - "/docker_registry/priviate-registry/nginx-web:/usr/share/nginx/html:ro"
      - "/docker_registry/priviate-registry/nginx.conf:/etc/nginx/nginx.conf:ro"
      - "/docker_registry/priviate-registry/certs/:/usr/share/certs:ro"
    ports:
      - "80:80"
      - "443:443"
    depends_on:
      - reg
    links:
      - reg
  reg:
    image: registry
    expose:
      - 5000
[root@docker priviate-registry]#
 
 
Read More
2017, November, 10

Introduction to docker

This is a clash of virtualization titans: one virtual machine, the other a containerization technology. In reality, both are complementary technologies—as hardware virtualization and containerization each have their distinct qualities and can be used in tandem for combinatorial benefits. Let’s take a look at each to find out how they stack up against each other, as well as how the two can be used in tandem for achieving maximum agility.

Read More
2017, November, 01

NFS server installation in centos 7

NFS Server
==========
yum install nfs-utils
mkdir /var/nfsshare
chmod -R 777 /var/nfsshare/
systemctl enable rpcbind && systemctl enable nfs-server && systemctl enable nfs-lock && systemctl enable nfs-idmap
systemctl start rpcbind && systemctl start nfs-server && systemctl start nfs-lock && systemctl start nfs-idmap
 
vi /etc/exports
/data 10.0.1.46(rw,sync,no_root_squash,no_all_squash) 10.0.2.59(rw,sync,no_root_squash,no_all_squash) 10.0.2.63(rw,sync,no_root_squash,no_all_squash)
 
systemctl restart nfs-server
Note 10.0.1.46 is the IP of client machine, " instead of IP for all IP access.
 
Read More
2017, June, 02

AlexaPi Amazon echo

How to Build Your Own Amazon Echo with a Raspberry Pi

As you'd expect, you'll need a Raspberry Pi alongside a handful of parts:

A Raspberry Pi 3 (recommended) or Raspberry Pi 2 (you'll also need a USB Wi-FI adapter with the Model 2) with Raspbian installed. If you haven't installed Raspbian before, our guide covers everything you need to know.
A MicroUSB power cable
An 8GB MicroSD card
A USB Microphone (I used this cheap $6 mic, but pretty much any USB mic seems to work. The $8 Playstation Eye seems to work especially well if you're looking for a slight upgrade)
Speakers (any powered speaker does the job, I decided to use a UE Mini Boom because I already owned it and even when it's plugged into the Pi, it still works as a Bluetooth speaker)
A Keyboard and Mouse for setup (or access to a computer with VNC)

Read More
2017, June, 02

Enabling VNC Server in Pi

Enabling VNC Server

On your Raspberry Pi, run the following commands to make sure you have the latest version of VNC Connect:

sudo apt-get update
sudo apt-get install realvnc-vnc-server realvnc-vnc-viewer

Now enable VNC Server. You can do this graphically or at the command line.

Read More
2017, February, 17

Install Cacti (Network Monitoring) on RHEL/CentOS 6.x

Cacti tool is an open source web based network monitoring and system monitoring graphing solution for IT business. Cacti enables a user to poll services at regular intervals to create graphs on resulting data using RRDtool. Generally, it is used to graph time-series data of metrics such as network bandwidth utilization, CPU load, running processes, disk space etc.

In this how-to we are going to show you how to install and setup complete network monitoring application called Cacti using Net-SNMP tool on RHEL 6.x and CentOS 6.xsystems using YUM  package manager tool.

 

Cacti Required Packages

 

The Cacti required following packages to be installed on your Linux operating systems like RHEL / CentOS

 

  1. Apache : A Web server to display network graphs created by PHP and RRDTool.
  2. MySQL : A Database server to store cacti information.
  3. PHP : A script module to create graphs using RRDTool.
  4. PHP-SNMP : A PHP extension for SNMP to access data.
  5. NET-SNMP : A SNMP (Simple Network Management Protocol) is used to manage network.
  6. RRDTool : A database tool to manage and retrieve time series data like CPU load, Network Bandwidth etc.
Read More
2017, February, 17

Installing Telnet In CentOS/RHEL

Installation
yum install telnet telnet-server -y
vi /etc/xinetd.d/telnet

Set disable = no:

# default: on
# description: The telnet server serves telnet sessions; it uses \
#       unencrypted username/password pairs for authentication.
service telnet
Read More
2017, January, 13

Move or migrate user accounts from old Linux server to a new Linux server

A. You can migrate users from old Linux server to new Linux sever with standard commands such as tar, awk, scp and others. This is also useful if you are using old Linux distribution such as Redhat 9 or Debian 2.x.

Following files/dirs are required for traditional Linux user management:
* /etc/passwd – contains various pieces of information for each user account

* /etc/shadow – contains the encrypted password information for user’s accounts and optional the password aging information.

* /etc/group – defines the groups to which users belong

* /etc/gshadow – group shadow file (contains the encrypted password for group)

* /var/spool/mail – Generally user emails are stored here.

* /home – All Users data is stored here.

Read More
2016, December, 20

vlan(802.1q) in linux (centos)

 

1. Check that the module is loaded by running the command: 
#lsmod | grep 8021q
2. If the module is not loaded, proceed to run the following command to load it: 
#modprobe 8021q 
3. Proceed to configure your physical interface in /etc/sysconfig/network-scripts/ifcfg-eth1. For example,
DEVICE=eth1
TYPE=Ethernet
BOOTPROTO=none
ONBOOT=yes
Read More