Working With Terraform

Write a comparison between Ansible Vs Docker Vs Terraform Terraform Ansible D Tool category Orchestration Configuration management Approach Immutable infrastructure Mutable infrastructure Language Declarative Imperative Provisioning Specializes in infrastructure provisioning Limited support for infrastructure provisioning LIfecycle management Lifecycle aware.  Maintains state of deployments. No lifecycle awareness Command line operation Yes Yes Agentless Yes Yes Write a terraform script where you create a linux ec2 instance with Security group and key defined so you should be able to use key to

Read more

Selfnotes/jenkins

“What is jenkins”? Jenkins is a free and open source automation server. It helps automate the parts of software development related to building,trsting,and deploying,facilitating continuous integration and continuous delivery. It is a server-based system that runs in servlet containers such as Apache Tomcat Advantages of Jenkins include: It is an open-source tool with great community support. It is easy to install. It has 1000+ plugins to ease your work. If a plugin does not exist, you can code it and

Read more

Introduction To Prometheus

Prometheus: Prometheus is an open-source systems monitoring and alerting toolkit. Time Series Database Time series data is the sequence of data points collected at a regular intervals over a period of time (metrics). For eg:- device data, weather data, etc. The data require aggregation and analysis. How prometheus is good for time series metrix? Prometheus is a very good tool for processing and monitoring time series data. This versatile tool can be used with Graphana, a statistics visualization, and anomaly observation tool. This tool can collect

Read more

Ansible Playbook Programs

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

Read more

Self-notes/Ansible Commands

Program 1 – Write a Ansible Adhoc Commands to create a group called “deployProgram create group deploy name=deploy 2 – Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell create user deploy-user name=deploy-user shell=/bin/bashcreate group deploy name=deploy Program 3 – Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Program 4 – Write a Ansible Adhoc commands to start and enable the

Read more

Services In Kubernetes

Services in Kubernetes are logical abstraction for a deployed group of pod in cluster. A service is responsible for exposing an interface to those pods, which enables network access from either within the cluster or between external processes and the service. Types Of Services In Kubernetes: ClusterIP – This helps in restricting the service within the cluster it expose the service within the defined kubernetes cluster NodePort – exposes a services via static port on the deployed node. A ClusterIP service

Read more