Terraform

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 login to ec2 instance Write a comparison between Ansible Vs Docker Vs Terraform Attribute Terraform Ansible 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

Read more

Short Notes on Jenkins

What is Jenkins? Jenkins is a free and open source automation server. It is developed in Java and it is platform Independent Jenkins can integrate all the tools-Jira,git, maven… It has scheduling Capacity and Feedback Capacity Continuous Integration Tool.{ Automatic Build + Automatic testing} It has 1800+ plugins easy to Configure Powered by very strong Community It is a process in which we do automatic testing and build activities. List out top 10 popular Jenkins Plugins Kubernetes plugin for Jenkins This

Read more

Ansible Playbook Lab

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

Write a Ansible Adhoc Commands to create a group called “deploy“ $ ansible all -m ansible.builtin.group -a”name=deploy state=present” Write a Ansible Adhoc Commands to create a user called “deploy-user” which is part of group called “deploy” and with /bin/bash shell. $ ansible all -m ansible.builtin.user -a”name-=deploy-user shell=/bin/bash group=deploy” Write a Ansible Adhoc commands to start and enable the service named “httpd” $ansible all -m ansible.builtin.service -a “name=httpd state=started” Write a Ansible commands to install a package called “git”, “wget”. $ansible

Read more

Kubernetes Services

Services Kubernetes services connect a set of pods to an abstracted service name and IP address. Services provide discovery and routing between pods. Services use labels and selectors to match pods with other applications Types of Services ClusterIP service ClusterIP is the default type of service, which is used to expose a service on an IP address internal to the cluster. Access is only permitted from within the cluster. NodePort service NodePorts are open ports on every cluster node. Kubernetes

Read more

Declarative Languages

Difference between Compiled Language Vs Interpreted Language Vs Declarative Language Compiled Language A compiled language is a programming language where the source code is translated into machine code and the machine code is stored in a separate file. In this language, compilation errors prevent the code from compiling. The code of compiled language can be executed directly by the computer’s CPU. This language delivers better performance.Some examples of compiled languages are C, C++, C#, CLEO, COBOL. Interpreted Language An interpreted

Read more

Pods in Kubernetes

What is Pod? A pod is the smallest execution unit in Kubernetes. Atomic unit of scheduling in kubernetes. Pod Contains: Pod can have multiple containers . All the containers inside the pod will share same enivronment. Pods Keeps on running as long as as the containers inside the pods are running. If atleast one container fails working pods stops working. LIFECYCLE OF POD Pod Life cycle consists of following phases Types of Pods 1.Single Container pod 2.Multi-Container pods- pods that

Read more

Introduction to Kubernetes

What is KUBERENETS? It is Container Orchestrator(for Largescale). Kubernetes can help you deliver and manage containers. Self-Healing/auto-Healing (Automatically replaces Nodes and adds containers if there is problem with some of the nodes). No trouble-shoot Needed. Auto Rollback. Kubernetes overcome the Following 3 problems- 1.Managing the multiple Docker hosts. 2.Load balancing multiple containers with same port in one host 3.Auto Scaling.   Kubernetes Architecuture It has Master Node & Worker Node. Master Node [Kubernetes Control Plane] -Manages the entire Cluster and worker

Read more