โ† Back to DevOps
ยฉ 2025 sampathirao yoganandh
Week 1 & 2 ยท CO-1

DevOps Fundamentals

What is DevOps, Why it Emerged, Core Principles, DevOps Culture, Key Elements & Tools  CO-1

What is DevOps?

DevOps is a modern software development approach where the Development team (writes code), Operations team (deploys & manages servers), and Testing team (checks quality) work together as a single team instead of separately.

Why DevOps is Needed

Modern applications require faster updates, fewer bugs, quick bug fixing, stable performance, and zero downtime. The traditional Waterfall method was slow and error-prone. DevOps solves these problems.

Real-World Analogy Without DevOps (Traditional): A college cultural event where the cultural team, light & sound, and stage setup all come separately โ€” takes days to prepare, miscommunication causes mistakes.

With DevOps: All teams sit together and prepare simultaneously โ€” faster, fewer mistakes, better coordination.

Why DevOps Emerged

Modern companies like Google, Amazon, and Netflix release updates daily, serve millions of users, and cannot afford downtime. Old methods failed because:

Real-World Examples

ExampleWithout DevOpsWith DevOps
Instagram Feature UpdateSlow manual releaseJenkins โ†’ Docker โ†’ Kubernetes โ€” fast automated pipeline
Online Exam Portal SlowdownServer crashes under trafficMonitoring detects high CPU โ†’ auto-scales servers

Core Principles

1. Collaboration

All teams share tools, processes, and knowledge. When developers and operations work separately, communication gaps create delays and errors. With collaboration, problems are solved faster with no blame and common goals.

Example Developer commits code โ†’ tester reviews โ†’ ops deploys โ†’ all discuss feedback immediately.

2. Automation

Automation removes manual mistakes and applies to code build, testing, deployment, monitoring, and environment setup.

Without AutomationWith Automation
Tester manually tests login page dailySelenium tests login page automatically
Ops manually deploys .war file each releaseJenkins deploys .war file automatically

3. Continuous Integration (CI)

Developers integrate (merge) their code frequently โ€” often many times a day. If 10 developers work for 10 days without merging, code conflicts occur, bugs remain hidden, and integration becomes painful. CI catches errors early.

Example If one developer's code breaks the build โ†’ Jenkins alerts instantly โ†’ quick fix.

4. Continuous Delivery (CD)

CD ensures that every successful build can be deployed at any time. After CI, Jenkins automatically builds the project, packages .jar/.war, and sends it to the testing environment โ€” the app is always ready for deployment.

5. Continuous Deployment

Every change that passes all tests is deployed to production automatically. Amazon deploys new features thousands of times per day using this approach.

6. Continuous Monitoring

Monitoring tools track server health, performance, errors, and crashes so issues are detected before users complain.

Example If the login API is slow โ†’ monitoring tool alerts the DevOps team โ†’ fix is deployed.

DevOps Culture

DevOps is not only tools โ€” it is behaviour, mindset, and culture.

1. Shared Responsibility

Everyone owns the product outcome. If an app crashes: Developer checks code, Ops checks servers, Tester checks functionality โ€” together they fix it quickly.

2. Fail Fast, Learn Fast

Failures are used for improvement, not blame. Example: A deployment failed due to wrong config. Instead of blaming, the team creates an automated config checker.

3. Transparency

Everyone knows what others are doing. All changes visible in GitHub, all builds visible in Jenkins, all deployments visible in logs. This avoids confusion.

Key Elements of DevOps

ElementDescriptionExamples
Continuous IntegrationFrequent code merging with automated buildsJenkins detects missing semicolon; unit tests fail โ†’ pipeline stops
Continuous DeliveryAlways-deployable build artifactsMaven packages .jar after CI; CD pipeline deploys to testing server daily
Continuous DeploymentAutomatic production release after all tests passBug fix in login module goes live immediately; new banner auto-deployed
Infrastructure as Code (IaC)Infrastructure managed via codeTerraform creates 10 servers; Ansible configures 50 servers identically
Continuous MonitoringReal-time tracking of health & performanceGrafana shows CPU spikes โ†’ auto-scales; Prometheus detects memory leak

DevOps Tools

ToolCategoryExample Use
GitCode VersioningStoring attendance management system code
JenkinsAutomation / CI-CDAuto-building student portal
DockerContainerizationPackaging Java app with all dependencies
AnsibleConfiguration ManagementInstalling Java on 50 servers at once
ChefConfiguration ManagementWriting recipes to automate server setup
PuppetConfiguration ManagementManaging multiple nodes via master-agent model
SaltStackRemote Execution / IaCFast configuration of 100+ servers
GrafanaMonitoring & VisualizationTracking CPU, RAM during exam peak time
DevOps Lifecycle Summary Plan โ†’ Code โ†’ Build (CI) โ†’ Test โ†’ Release โ†’ Deploy (CD) โ†’ Operate โ†’ Monitor โ†’ (back to Plan)
๐Ÿ“„

DevOps Fundamentals โ€” Notes PDF

Week 1 & 2 ยท DevOps Introduction, Core Principles & Culture

โฌ‡ Download PDF