Posts

Terraform Tutorial

Image
Terraform is an infrastructure as code (IaC) tool that allows you to build, change, and version infrastructure safely and efficiently. This includes low-level components such as compute instances, storage, and networking, as well as high-level components such as DNS entries, SaaS features, etc. Terraform can manage both existing service providers and custom in-house solutions. Terraform's configuration language is declarative, meaning that it describes the desired end-state for your infrastructure, in contrast to procedural programming languages that require step-by-step instructions to perform tasks. Terraform providers automatically calculate dependencies between resources to create or destroy them in the correct order. Terraform is HashiCorp's infrastructure as a code tool. It lets you define resources and infrastructure in human-readable, declarative configuration files, and manages your infrastructure's lifecycle. Using Terraform has several advantages over manually ma

12 - NAGIOS MONITORING

 NAGIOS MONITORING Infrastructure Monitoring Server, Hardware, Port, Router, processor CPU, Memory ...... Opensource, continuous monitoring tools Detailed Monitoring ( 1 minute) Extendable Architecture - Plugins VictorOps (Calling on mobile) integrated with Nagios Nagios Web Interface (GUI) Nagios core  Nagios Process Scheduler Nagios Executive Plugins  - ( NRPE services ) Plugins check the Status and get Results Plugins send Results to Nagios to process  -> Notifies the Admin about the Status processed by Scheduler -> Remote Resource Servies  -> Plugins check the status and get results Nagios Core -> Plugins -> Scheduler  --> GUI Plugin is compiled executable or scripts in Perl or non-Perl Office Nagios Plugin -> There are 50 official Nagios plugins Community plugins -> around 250 Custom plugins -> write your own plugins NRPE - Nagios Remote Plugin Executor NRPE allows you to remotely execute Nagios plugins on other Linux/Unix machines. This allows you t

11 - Kubernetes - K8s

Image
 Docker Container Clustering using Kubernetes Orchestration Developed by Google lab in 2015 - Now managed by CNCF Open-source Kubernetes is also called K8s test Running on Docker and other Containers More functionality  Supported by Clouds - AWS, Azure, GPC Master nodes managed by Cloud and not access Tenant Communication between Container by CNI -> Container Network Interface Capability of automating deployment, scaling of application, and operations of application container across clusters Auto-scalable infrastructure Higher density of resource utilization Predictable infrastructure Kubernetes Architecture Kubernetes Master Server etcd : configuration information of K8s ( like Zookeeper ), in multiple nodes API Server: Provide operation on cluster - kubeconfig tools that used for communication Scheduler: responsible for deploy PODs Controller Manager: responsible for managing cluster of state Kubernets Nodes Docker: requirement of each node and help in running the encapsulated a

06 - Docker Swarm - Container Orchestration

Image
 Docker Swarm - Container Orchestration Create Cluster Build & Deployment automated Rolling Deployment Update Version Docker Swarm is clustering for Docker It turns several Docker hosts into a single virtual Docker host The Swarm is controlled by Swarm Manager Each Docker code communicates with the manager It can be installed manually or by using Docker Machine Scheduler Service Discover Consul -> provide DNS Zookeeper - configuration management tools Cheat Sheet => https://lzone.de/cheat-sheet/Docker%20Swarm LAB mkdir DockerSwarm cd DockerSwarm mkdir manager vm1 vm2  *** Manager Node **** cd manager vagrant ssh sudo su - hostnamectrl set-hostname managernode.unix.in bash vi /etc/hosts 192.168.33.14 managernode.unix.in 192.168.33.15 workernode1.unix.in 192.168.33.16 workernode1.unix.in ## Install Docker C curl -fsSL get.docker.com | sh ## Add user Vagrant in Docker group sudo usermod -aG docker vagrant id vagrant ## Start Docker Service

21 - Terraform Lab - By Houssem Dellai

Image
 TERRAFORM - BY HOUSSEM DELLAI  Install Terraform - Chocolatey on Windows https://learn.hashicorp.com/tutorials/terraform/install-cli https://terraform.io Download Azure CLI https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-windows?tabs=azure-cli Create an Azure Account Download Visual Studio Code  https://code.visualstudio.com/download Install Terraform Extension Download Source Code/ Template  https://github.com/HoussemDellai/terraform-course Deploy Infra in the Cloud using Terraform 01 - Resource Group vi main.tf # valid for terraform version 0.13 # provider "azurerm" { #   version = "=2.40.0" #   features {} # } # valid for terraform version 0.14 provider "azurerm" {   features {} } terraform {   required_providers { azurerm = {   source  = "hashicorp/azurerm"   version = "2.40.0" }   } } resource "azurerm_resource_group" "rg" {   name     = "myFirstReso