Terraform comparison and example code

Docker vs Ansible vs Terraform Docker is particularly a container technology while Ansible are tools for configuration management. Terraform, created by HashiCorp, provides a syntax to define infrastructure and services that can be hosted either on premises or in the cloud ansible and terraform both are opensource.  When it comes to Ansible, it’s very similar to Terraform in terms of what you can create with it. For example, you can also create the Azure Resource Group with Terraform.  Terraform users define

Read more

Jenkins an overview

jenkins is an open-source automation tool it is an continues integration tool. It lets you execute a series of actions to achieve the continuous integration process. it can perform automatically the build and test and gives immediate feedback  making it easier for users to obtain a fresh build. jenkins can integrate every devops tools such as jira,git,sonarqube etc. it can also schedule and gives feedback. jenkins releases are, jenkins, enterprise jenkins, jenkinsx, and blueocean. jenkins is the community version and free.

Read more

Time series data & Prometheus

time series data base sequence of data points collected at regular intervals over a period of time how prometheus good for time series metrics Prometheus fundamentally stores all data as time series: streams of timestamped values belonging to the same metric and the same set of labeled dimensions components of prometheus prometheus server client libraries push gateway exporters alert manager How does prometheus work by pushgateway:-The Pushgateway is an intermediary service which allows you to push metrics from jobs which cannot be scraped by

Read more

Ansible playbook Excercise

Write a Ansible Playbook to create a group called “deploy” Write a Ansible Playbook to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. Write a Ansible Playbook to install package named “httpd” in RHEL/centos. Write a Ansible Playbook to start and enable the service named “httpd” Write a Ansible Playbook to create a file called “index.html” in /var/www/html with some dummy html contents. Write a Ansible Playbook to reboot a self machine.

Read more

Ansible Adhoc commands

Ansible Adhoc commands for create an group called deploy  Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell.  Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos.  Write a Ansible Adhoc commands to start and enable the service named “httpd” Write a Ansible commands to create a file called “index.html” in /var/www/html with some dummy html contents.  Write a Ansible commands to copy a file

Read more

services(kubernet)

What is a Service? An abstract way to expose an application running on a set of Pods as a network service. With Kubernetes you don’t need to modify your application to use an unfamiliar service discovery mechanism. Kubernetes gives Pods their own IP addresses and a single DNS name for a set of Pods, and can load-balance across them. What is the types Services? ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within

Read more

Declarative language -overview

Difference between Compiled , Interpreted vs declarative Language compiled language :-implementations are typically compilers and not interpreters. eg: java,c,c++ Interpreter language :- execute instructions directly and freely without compilation. eg: python declarative language :- program specifies what is to be done rather than how to do it. expresses logic of a computation Example of Declarative language JSON YAML Pros and Cons of Declarative Language pros short efficient code can written high level of abstraction cons hard to understand

Read more

PODS In Kubernets

What is POD and what is POD contain? atomic units of scheduling pods contain one or more containers all containers in pod shares the same pod environment. pod is running, containers in pod also running POD lifecycle pending -> running -> succeeded/failed type of PODS basically two types single container pod multiple container pod

Read more

kubernet with in 5 mintus

What is Kubernetes kubernetes is a open source container orchestration,for container scalability and workload placement,desired stare Why Kubernetes for overcomes some challenges *we can start starting to view data center as a computer *containers scalability challenge Kubernetes Architecuture master: *kubernet control plane *high availability(one master goes down other will came) api server *front end to control plane cluster store *cluster store & configure *persistent storage * uses kubctl controller *controller of all controllers(node,endpoint….) scheduler *assign works to nodes nodes *do

Read more