0% found this document useful (0 votes)
13 views72 pages

DevOps Overview and Practices Guide

Uploaded by

cyclecomfyshop
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views72 pages

DevOps Overview and Practices Guide

Uploaded by

cyclecomfyshop
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

DevOps

Tutorial
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Module 1:
freakmano826@[Link]

DevOps Overview
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Why DevOps?
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Waterfall Model

Requirements In the early year of software


development when it was just
Designing coming up, waterfall model was
used.
Implementation
freakmano826@[Link] Waterfall model is a very standard
T82Z0D7IUB
model used in many different fields,
Testing not just software development.

It was very useful when the


Deployment
requirements were concrete and the
development cycles were long.
Maintenance
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
New Methodologies

Extreme Programming
freakmano826@[Link]
T82Z0D7IUB Agile Spiral Model

Develop an Build a Plan by Design by Build by


overall model feature list feature feature feature

Feature Driven Development


Lean Methodology
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

What is DevOps?
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is DevOps?

freakmano826@[Link]
T82Z0D7IUB

Way of software Values & Principle Methodologies Tools


development

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is DevOps?

The name DevOps comes from Developer and Operations. DevOps bridges
the communication gap between the software developers and the It operation
teams.

freakmano826@[Link]
T82Z0D7IUB

DevOps

DevelopersThis file is meant for personal use by freakmano826@[Link] [Link]


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is DevOps?

“DevOps is a set of practices that combines software development (Dev)


and IT operations (Ops). It aims to shorten the systems development life
cycle and provide continuous delivery with high software quality. DevOps is
complementary with Agile software development; several DevOps aspects
came from Agile methodology.”
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Benefits of DevOps

freakmano826@[Link]
T82Z0D7IUB

Productivity Returns

Excellence
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

DevOps Phases
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
DevOps Phases

Continuous Continuous Continuous Continuous Continuous


Development Testing Integration Deployment Monitoring
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Who is a DevOps Engineer?


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
DevOps Engineer

- Basically a DevOps engineer is responsible for designing, maintaining the


software development pipeline. He also makes sure that a software is
deployed properly without any issues. A DevOps engineer knows how to
automate processes and writing automation scripts. He also knows how to
keep the whole infrastructure secure and robust.
freakmano826@[Link]
T82Z0D7IUB
- A DevOps engineer has excellent communication skills that help him to
convey ideas and exchange information between different teams.

- On daily level, a DevOps engineer is responsible for makes sure scaling


needs of cloud are fulfilled, optimisation, managing permissions,
documentations.

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
DevOps Engineer
A DevOps engineer has a wealth of knowledge such as:

• Knowledge of Linux, Windows Operating Systems


• Database Tech
• Server Tech
freakmano826@[Link] • Orchestration
T82Z0D7IUB
• Cloud tech
• Source Control
• Continuous integration & Deployment
• Automation
• Scripting
• Networking
• Excellent Communication
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Version Control - GIT


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

What is Version Control?


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Version Control?
These days when software is developed, It is not developed with the mind-set
that there will only be one piece of code that will be deployed and that’s it.
These days smaller snippets of code are deployed in regular successions with
regular feedbacks. This leads to many different versions of the code.

And that creates a need to organise the code and all of its different version of
it. This is where Version Control comes in. It is a practice of managing and
freakmano826@[Link]
T82Z0D7IUB
storing different version of a source code.

This is especially the case with Larger companies that have multiple projects
and multiple teams working within it.

A1, A2, A3 B1, B2, B3 C1,C2,C3


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

What is Git
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Git?
Git is an open source version control system that allows the user to keep track
of all the changes that have been made to the source code of the software.

freakmano826@[Link]
T82Z0D7IUB

Developer 1

GitHub

Developer 2
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Git?
The lifecycle of the code within Git.

freakmano826@[Link]
T82Z0D7IUB

Working Directory Initialization Staging Local Storage GitHub

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Getting started with GitHub


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Installing & Configuring Git


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Git Installation & Setup

Linux Windows MAC

freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Git Common Commands


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Branches
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Microsystems & Containerization


– DockerThis file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Issues we faced before Containerization


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Issues we faced before Containerization

freakmano826@[Link]
T82Z0D7IUB

Developer Tester

Standard Delivery Pipeline


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Issues we faced before Containerization

Operating Pytest 5.4.3 Pycharm IDE


freakmano826@[Link]
System
T82Z0D7IUB

Backend Code Dependencies


Backend Developer

Developer’s Environment
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Issues we faced before Containerization

Operating Pytest 5.3.0 Spyder IDE


freakmano826@[Link] System
T82Z0D7IUB

Backend Code Dependencies


Tester

Tester’s Environment
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Issues we faced before Containerization

Developer Tester

freakmano826@[Link]
T82Z0D7IUB

- This Code runs fine on my computer - This Code does not run on my system
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Issues we faced before Containerization

Developer Tester

freakmano826@[Link]
Operating
T82Z0D7IUB
Pytest 5.4.3 Pycharm IDE Operating Pytest 5.3.0 Spyder IDE
System System

Backend Code Dependencies Backend Code Dependencies

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
Issues we faced before Containerization

freakmano826@[Link]
T82Z0D7IUB - Now Let’s see what happens
when we introduce Containers.

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
Issues we faced before Containerization

- This Code runs fine on my computer


- This Code runs fine on my computer

freakmano826@[Link]
T82Z0D7IUB

Developer Tester Prod

Similar
This file isDelivery Pipeline
meant for personal but with containers
use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

What is a Container?
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is a Container?

Containers are software that wrap up all the parts of a code and all its
dependencies into a single deployable unit that can be used on
different systems and servers.

freakmano826@[Link]
T82Z0D7IUB

Code Libraries

Container Systems & Servers


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

What is Docker?
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
What is Docker?

Docker is a tool that helps in developing, building, deploying and executing software in
isolation. It does so by creating containers that completely wrap a software.

freakmano826@[Link]
T82Z0D7IUB

The Isolation provided by container gives a layer of security to the


containers.
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Why Docker?

Simple Fast Easy Collaboration


freakmano826@[Link]
T82Z0D7IUB

Built for Developers, by


Docker Community
Developers
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Docker Installation & Setup


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Docker Installation & Setup

Linux Windows MAC

freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Docker Environment
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Docker Environment

Docker Engine Docker Objects Docker Registry


freakmano826@[Link]
T82Z0D7IUB

Docker Compose Docker Swarm


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Docker Engine
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Docker Engine

Docker engine is as the name suggests, its technology that allows for
the creation and management of all the Docker Processes. It has three
major parts to it.

freakmano826@[Link]
T82Z0D7IUB

Docker CLI Docker API Docker Daemon

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Docker Objects
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Docker Objects

Docker Images Docker Containers Docker Volumes


freakmano826@[Link]
T82Z0D7IUB

Docker Swarm Nodes &


Docker Networks
Services
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
Docker Objects - Images

Docker images are sets of instructions that are used to create


containers and execute code inside it.

freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
Docker Objects - Images

freakmano826@[Link]
T82Z0D7IUB Let’s pull an image and work with
it.

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Docker Common Commands


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
freakmano826@[Link]
T82Z0D7IUB

Continuous Integration - Jenkins


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Agenda

1. Why Continuous integration?


2. What is Jenkins?
freakmano826@[Link]
T82Z0D7IUB 3. What are Jenkins Features?
4. Jenkins architecture
5. Jenkins installation & setup
6. Setting up a CI/CD pipeline

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Why continuous integration?


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why continuous integration?

freakmano826@[Link]
T82Z0D7IUB

Code
Source Code Deployment
Manager Tester

Standard Delivery Pipeline


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

What is Jenkins?
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Jenkins?
Jenkins is an Open Source continuous integration tool written in java
that allows us to automate the software development process, making
sure that there is minimum involvement from us. It also integrates all
the different parts of the development.
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is Jenkins?

freakmano826@[Link]
T82Z0D7IUB
Code
Source Code Deployment
Manager Jenkins

Tester
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Benefits of Jenkins
- Jenkins is a community tool – Its open source and has a very very
large community that contributes to it regularly.

- It’s free, so you don’t have to accrue anymore subscription costs.


freakmano826@[Link]
T82Z0D7IUB

- It is highly modifiable and adaptable and has a support for a very


large number of plugins.

- It can run on any major platform without any compatibility issues.

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Jenkins Pipeline

feedback

Staging
Code
freakmano826@[Link] building
T82Z0D7IUB

Testing
Jenkins

Source Code
Manager
Production

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Jenkins Installation & Setup


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Continuous Monitoring – ELK &


Prometheus & grafana
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

Why Continuous Monitoring?


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why Continuous Monitoring?
Continuous Monitoring is an important part of Software Development. It
is something we take up as measure to maintain the health of a
software and to improve the quality of the software, and this is based
on the feed back we get from the insights gained from monitoring.
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why Continuous Monitoring?
Continuous Monitoring is an important part of Software Development. It
is something we take up as measure to maintain the health of a
software and to improve the quality of the software, and this is based
on the feed back we get from the insights gained from monitoring.
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why Continuous Monitoring?
Continuous Monitoring is an important part of Software Development. It
is something we take up as measure to maintain the health of a
software and to improve the quality of the software, and this is based
on the feed back we get from the insights gained from monitoring.
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
Why Continuous Monitoring?
Continuous Monitoring is an important part of Software Development. It
is something we take up as measure to maintain the health of a
software and to improve the quality of the software, and this is based
on the feed back we get from the insights gained from monitoring.
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

What is ELK stack?


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
What is ELK stack?
ELK stack is a set of open-source tools that allow us to monitor, collect, process
analyze & visualize data, this data can be of different types and formats and
from almost any source. It was developed by Elastic co. iteratively. They started
with Elastic search and kept on adding more tools to the stack. The primary
purpose of ELK stack is log management.
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
ELK features

System & Application Stack Security &


Logging
Performance
freakmano826@[Link] Alerting
T82Z0D7IUB

Scalability and Dashboards &


Resiliency Visualisations
This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
ELK Stack
Logstash

Elastic search Kibana X-Pack

freakmano826@[Link]
Filebeat
T82Z0D7IUB

Security Reporting

Alerting ML

Elastic Cloud / Infrastructure


This file is meant for personal use by freakmano826@[Link] only.
Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited
freakmano826@[Link]
T82Z0D7IUB

This file is meant for personal use by freakmano826@[Link] only.


Sharing or publishing the contents in part or full is liable for legal action.
©Great Learning. All Rights Reserved. Unauthorized use or distribution prohibited

You might also like