Selfnotes/terraform-variables

Write a terraform script using aws ec2 instance and github and apply following kind of variables – Types of Terraform variable – Number provider “aws” {region = “us-west-2”access_key = “”secret_key = “”} resource “aws_instance” “first-ec2” {ami = “ami-03d5c68bab01f3496” # us-west-2instance_type = “t2.micro” tags = {Name = “Abhishek Reddy”}} variable “numofusers” {type = numberdescription = “This is for demo of number variable”default = 3} resource “aws_iam_user” “example” {count = “${var.numofusers}”name = “Abhishek Reddy.${count.index}”} —————————————————————————————————– – Types of Terraform variable – String

Read more

Selfnotes-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 Docker Tool category Storage/Volume Management ,Orchestration and Schedulers Approach Mutable infrastructure Language Declarative Provisioning Specializes in infrastructure provisioning LIfecycle management created, running, deleted, paused ,stopped Command line

Read more

Selfnotes/jenkins

“What is jenkins”??? Jenkins is an open-source automation tool written in Java with plugins built for Continuous Integration purposes. Jenkins is used to build and test your software projects continuously making it easier for developers to integrate changes to the project, and making it easier for users to obtain a fresh build. It also allows you to continuously deliver your software by integrating with a large number of testing and deployment technologies. With Jenkins, organizations can accelerate the software development

Read more

Selfnotes-prometheus

What is Time Series database? time series database stores data as pairs of time(s) and value(s). By storing data in this way, it makes it easy to analyze time series, or a sequence of points recorded in order over time. How prometheus is good for time series metrix? No extensive set up needed. Allows fast outage discovery. Outages can be very quickly discovered when the system fails to get requests from known monitoring sources. Provides a functional query language, PromQL,

Read more

selfnotes-ansible/playbook

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. Install Apache name=httpd 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

Read more

Self-notes/Ansible

Program 1 – Write a Ansible Adhoc Commands to create a group called “deploy create group deploy name=deploy Program 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/bash Program 3 – Write a Ansible Adhoc commands install package named “httpd” in RHEL/centos. Install the httpd apps name=httpd Program 4 – Write a Ansible Adhoc commands to start and enable the

Read more

Selfnotes-Services

What is a Service? A service is a logical abstraction for a deployed group of pods in a cluster (which all perform the same function). What is the types Services? ClusterIP : Exposes a service which is only accessible from within the cluster.NodePort. : Exposes a service via a static port on each node’s IP.LoadBalancer : Exposes the service via the cloud provider’s load balancer.ExternalName : Maps a service to a predefined externalName field by returning a value for the

Read more

Selfnotes-Declarative lang

1.Diff between Compiled Lang Vs Interpreted Lang Vs Declarative Lang? Compiler Lang : A compiled lang is a programming lang whose implementations are typically compilers (translators that generate machine code from source code), and not interpreters (step-by-step executors of source code, where no pre-runtime translation takes place). Interpreted lang : Interpreted lang is a programming lang which are generally interpreted, without compiling a program into machine instructions. It is one where the instructions are not directly executed by the target machine, but instead read and executed

Read more

Selfnote on PODS

Types of pod’s?? 1.one-container-per-Pod 2. Pods that runs multiple container that need to work together. What is pod?? Pod is nothing but similar to a group of containers with shared namespaces and shared filesystem volumes and no pod’s are re-deployed what pod contain’s???? 1.A unique IP address (which allows them to communicate with each other) 2.persistent storage volumes 3.configuration information that determine how a container should run. Life cycle of pod??? 1.Pending : The Pod has been accepted by the

Read more

kubernetes-self notes

1.What is Kubernet? Cluster together group of hosts running linux container’s i.e container orchestrator and moreover it is a open source platform means anyone can access this tool 2.Why Kubernetes ?? Kubernetes is a portable,workload placement,infrastructure abstraction and desired state that facilitates both declarative configuration and automation. 3.Kubernetes Architecuture??? Kubernetes cluster consists of a set of worker machines, called nodes, that run containerized applications. Every cluster has at least one worker node. we have pod’s inside pod’s we have container’s and

Read more