forked from SA-DevOps-ai/Class_Notes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDevOps_Intro.txt
More file actions
471 lines (280 loc) · 10.6 KB
/
DevOps_Intro.txt
File metadata and controls
471 lines (280 loc) · 10.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
######################
Day 6 : 15th Apr. 2025
######################
DevOps Overview
• Evolution of Waterfall, Agile, and DevOps
• What is DevOps
• Why DevOps
• Benefits of DevOps
• DevOps Stages
• DevOps Lifecycle
• Various Automation in DevOps
• Overview of CICD
DevOps :::
What is DevOps?
IT Services :
Software :
Types of Software Applications :
- Destops Applications
- Web Applications
- Mobile Applications
- Embedded Applications
SDLC - Software Development Life Cycle :::
- Requirement Analysis
- Design and Documentation
- Code/Development
- Testing
- Implement to Production
- Maintain/Monitor
Destops Application :
Retail Business - SuperMarket Billing System
Functions/Modules :
- Products Inventory
- Billing Dashboard
- Invoice Templates
- Payment - CASH/Card Payment
- OnlinePayment/UPI
Waterfall Model :
- Linear in fashion, it strictly follows the top-down approach.
- It was implement for Monolith Application Architecture.
Initial Project :
- Requirement Analysis 12 Months
- Design and Documentation
- Code/Development 5th Month of the Project
- Testing
- Implement to Production
- Maintain/Monitor
Enhancement Project - - OnlinePayment/UPI
- Requirement Analysis
- Design and Documentation
- Code/Development
- Testing
- Implement to Production
- Maintain/Monitor
AGILE Methodologies :
Iterations :
- Products Inventory
- Billing Dashboard
- Invoice Templates
- Payment - CASH/Card Payment
- OnlinePayment/UPI
Iteration 1 : Products Inventory
- Requirement Analysis
- Design and Documentation
- Code/Development
- Testing
- Implement to Production with proper approvals
Iteration 2 : Billing Dashboard
- Requirement Analysis
- Design and Documentation
- Code/Development
- Testing
- Implement to Production with proper approvals
nth Iteration : OnlinePayment/UPI
- Requirement Analysis
- Design and Documentation
- Code/Development
- Testing
- Implement to Production with proper approvals
Using Agile Methodologies :
- We can able to achieve :
- Continuous Development
- Continuous Integration
- Continuous Testing
- Continuous Delivery
- Continuous Delivery expect manual approvals for producion release
- We cannot achieve Continuous Deployments.
- Continuous Deployment - Never expect manual approvals for producion release
DevOps :::
- Requirement Analysis
- Design and Documentation
- Code/Development
- Testing
- Implement to Production
- Maintain/Monitor
- DevOps is Software Development Strategy, helps to promote collaboration between the teams like Development Team and Operation Teams to achieve Continuous Development, Continuous Integration, Continuous Testing, Continuous Delivery, Continuous Deployment and Continuous Monitoring in more automated fashion.
How to implement DevOps ?
- Teams involved in the SDLC Process :
DevOps Team :
- Infra-Structure Management Team
- Application Development Team
- Testing Team
- Release Management Team
- Production Monitoring Team
- Production Support Team
- IT Security Team
- Environments :
Non-Prod Environments Prod Environments
Dev Environment
Build Environment
Test Environments
- QA
- UAT ===========================> Production Servers
- Application Architecture :
- Monolith Application Architecture
- It is tightly coupled Application Architecture
- All the Components/Functions/Modules are created and deployed as a whole application.
- Expect the downtime during Production Implementation.
- Here we can achieve only Continuous Delivery
- Micro-Service Based Application Architecture
- It is loose coupled Application Architecture
- The Entire Application is divided into various Micro-Services
- These Micro-Services can be independently developed,tested and implemented to producion.
- Here we can achieve Continuous Deployment
- DevOps Stages :
- Continuous Development ::
- It is the capability of the Development Team to Continuously Develop the Source Code for futher integrations.
- It aims to improve the Developers productivity.
Role of Application Developers?
- Create Source Code
Developers :
- Create Source Code (Java/C#.Net/Python)
- Manually Build the Source Code - Compile the Source Code and Create Artifacts(Binaries - *.war/*.jar/*.dll/*.exec)
- Unit Testing
- Promote the Changes to Test Environment
- Notify the Testing Team thru Emails.
Using DevOps Approach :
We Expect the Developers :
- To Create Source Code
- Save the Source Code in the Source Repository(like github)
Using DevOps Automation :
- Automate the Application Build - Compile the Source Code and Create Artifacts(Binaries - *.war/*.jar/*.dll/*.exec)
- Automate Unit Testing
- Automate - Promote the Changes to Test Environment
- Automate - Notify the Testing Team thru Emails.
Tools :
- IDE - Integrated Development Environment - Eclipse,Visual Studio Visual Studio Code,Pycharm
- Git/GitHub
- Continuous Integration ::
- It is the capability of the Development Team to Continuously Integrate their changes to further testing without impacting others.
Using DevOps Automation :
- Automate the Application Build - Compile the Source Code and Create Artifacts(Binaries - *.war/*.jar/*.dll/*.exec)
- Automate Unit Testing
- Automate - Promote the Changes to Test Environment
- Automate - Notify the Testing Team thru Emails.
Tools :
- IDE - Integrated Development Environment - Eclipse,Visual Studio Visual Studio Code,Pycharm
- Git/GitHub
- Build Tools - Maven/ Gradle
- Junit / TestNG
- Jenkins, Ansible, Docker, Kubernetes
- Continuous Testing ::
- It is the capability of the Testing Team to Continuously Test the changes without impacting other changes.
- Enable Automated Testing
Tools :
- JUnit / TestNG / Selenium
- Jenkins
- Continuous Delivery / Deployment ::
- Both Continuous Delivery and Continuous Deployment are used to perform Production Release.
- Continuous Delivery
- Continuous Delivery expect manual approvals for producion release
- Expect the Application Downtime during Production Implementation
Eg.:
- Online Banking :
Create a Production Release Window : V1.0 LIVE
V2.0 to be deployment
- 4Hrs - 6Hrs -> Non-Business Hours
- First try to fix the issue within the given time
- or Revert the changes
- Continuous Deployments
- Continuous Deployment - Never expect manual approvals for producion release
- Without any Downtime we can perform Production Implementations.
- Continuous Deployment can be achieved only if it is Micro-Service Based Application Architecture
Eg.:
- Netflix/Facebook/Amazon ==>
Tools :
Jenkins/Docker/Kubernetes/Ansible/Terraform
- Continuous Monitoring ::
- To ensure High Availabililty of Applications and services.
- Infra-Structure Monitoring
- Monitoring the Infra-Structure - Servers/Associated Resources.
- CPU / Memory Utilization -
- Monitoring Tools :
- Prometheus/Grafana/Dynatrace/Nagios/Splunk
- Application Monitoring :
- AppDynamics / DataDog
- Infra-Structure Management using IAC :
- IAC - Infra-Structure As Code :
- Create and Configure Infra-Structure using Declarative Scripts
- Infra-Structure Provisioning/Creation
- Tools : Terraform/CloudFormation/ARM
- Infra-Structure Configuration
- Tools : Ansible/Chef/Puppet
Next :
DevOps Tools :
DevOps LifeCycle :
Scope of DeVOps :
######################
Day 7 : 16th Apr. 2025
######################
DevOps Tools :
DevOps LifeCycle :
Scope of DevOps :
DevOps Tools :
- Open-Source DevOps Tools :
- git/jenkins/docker/kubernetes/ansible/terraform/prometheus/grafana
- Managed Services :
AWS : AWS Code Commit,Code Build,Code Deploy,Code Pipeline,Code Artifacts
Azure : Azure DevOps Services - AzBoards,AzRepo,AzPipelines,AzTest Plan,AzArtifacts
GCP : DevOps Services
DevOps Lifecycle :
Developer Create Source Code
|
|
Commit the Code to Source Code Repository (Github/Az-Repo)
|
|
Automated Build
|
|
Automated Code Promotion to Test Environment
|
|
Automated Testing
|
|
Automated Code Promotion to Production Environments
|
|
Production Testing
|
|
Continuous Monitoring
|
|
Feedback from Customers/Business Users
Scope of DevOps :
Waterfall-AGILE-DevOps-DevSecOps-GitOps-AIOps-MLOps-SRE,..............
DevOps :
DevOps is all about :
- People
- Process
- Tools
DevOps on Cloud :
- Cloud DevOps Services :
AWS : AWS Code Commit,Code Build,Code Deploy,Code Pipeline,Code Artifacts
Azure : Azure DevOps Services - AzBoards,AzRepo,AzPipelines,AzTest Plan,AzArtifacts
• Overview of AWS DevOps and Azure DevOps
• Code Build
• Code Commit
• Code Deploy
• Code Pipeline
• Overview of Cloud Formation
- Open-Source DevOps Tools :
- git/GitHub/jenkins/docker/kubernetes/ansible/terraform/prometheus/grafana
Open-Source AWS DevOps Services
- GitHub == Code Commit
- Jenkins == Code Build - Code Deploy - Code Pipeline (Code Build - Code Deploy)
- Docker == ECS
- Kubernetes == EKS
- DockerHub == ECR
- Terraform == CloudFormation(AWS Resources)
- Ansible == CloudFormation(AWS Resources)
Automate Infra-Structure Provisioning and Configurations :
- AWS Provided IAC Tool - Service ==> CloudFormation
- CloudFormation is meant only for AWS Services
- Terraform can be used to provision the resouce in any Cloud Platform/Multi-Cloud Platform/Hybrid Environments.
- Infra-Structure Provisioning/Creation
- Tools : Terraform/CloudFormation/ARM
- Infra-Structure Configuration
- Tools : Ansible/Chef/Puppet