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.



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'
    image: nginx:latest
      - "/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"
      - "80:80"
      - "443:443"
      - reg
      - reg
    image: registry
      - 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