SlidePub
Home
Categories
Login
Register
Home
General
GCP-DevOps-projectintroduxtionfir devopsproject.pdf
GCP-DevOps-projectintroduxtionfir devopsproject.pdf
Masar10
52 views
178 slides
Aug 01, 2024
Slide
1
of 178
Previous
Next
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
About This Presentation
Project
Size:
2.69 MB
Language:
en
Added:
Aug 01, 2024
Slides:
178 pages
Slide Content
Slide 1
© Copyright KodeKloud
Slide 2
© Copyright KodeKloud
Slide 3
© Copyright KodeKloud
Slide 4
© Copyright KodeKloud
Creating a new GitHub repo
Slide 5
© Copyright KodeKloud
Setting up the repo according to
the company's best practices
Slide 6
© Copyright KodeKloud
Coding
Writing a code for a simple
docker image
Slide 7
© Copyright KodeKloud
Testing the code locally
Slide 8
© Copyright KodeKloud
Pushing the code to the
GitHub repo
Slide 9
© Copyright KodeKloud
GitHub Docker
Slide 10
© Copyright KodeKloud
Task 1
Creating a GitHub Repo
Slide 11
© Copyright KodeKloud
Creating a GitHub
Repository
Slide 12
© Copyright KodeKloud
Task 2
Cloning the repo and setting up our editor
Slide 13
© Copyright KodeKloud
Slide 14
© Copyright KodeKloud
Slide 15
© Copyright KodeKloud
Summary
Clone Setup Change Code
Slide 16
© Copyright KodeKloud
Task 3
Setting up GitHub repo according to
DevOps best practices
Slide 17
© Copyright KodeKloud
Slide 18
© Copyright KodeKloud
How to set up the GitHub repo?
Slide 19
© Copyright KodeKloud
GitHub Main Clone Make a
change
Slide 20
© Copyright KodeKloud
What is the Problem with this approach?
Slide 21
© Copyright KodeKloud
GitHub Main Clone Make a
change
Slide 22
© Copyright KodeKloud
GitHub Main Clone Make a
change
Conflict
Slide 23
© Copyright KodeKloud
How to improve?
Slide 24
© Copyright KodeKloud
Branch Protection
Slide 25
© Copyright KodeKloud
GitHub Main Clone Make a
change
Pool Request
Slide 26
© Copyright KodeKloud
GitHub Main Clone Feature
Branch
(task)
Pool RequestEngineer
Reviewed
Slide 27
© Copyright KodeKloud
How to enable Branch Protection?
Slide 28
© Copyright KodeKloud
Task 4
Coding for our application locally
Slide 29
© Copyright KodeKloud
Develop code locally
and test it.
Slide 30
© Copyright KodeKloud
VS Code Editor
Slide 31
© Copyright KodeKloud
Demo
Testing, Debugging our code locally
Slide 32
© Copyright KodeKloud
Sprint-01
Review
Slide 33
© Copyright KodeKloud
Sprint Review in Organizations
Creating a new GitHub repo
Setting up the repo according to the company's best practices
Coding: Writing a code for a simple docker image
Testing the code locally
Pushing the code to the GitHub repo
Slide 34
© Copyright KodeKloud
Slide 35
© Copyright KodeKloud
Sprint-02
Slide 36
© Copyright KodeKloud
Slide 37
© Copyright KodeKloud
Creating a GCP account
Slide 38
© Copyright KodeKloud
Understanding the
fundamentals of GKE in GCP
Slide 39
© Copyright KodeKloud
Setting up a GKE cluster
Slide 40
© Copyright KodeKloud
Sprint Goals
Creating a GCP account
Understanding the fundamentals of GKE in GCP
Setting up a GKE cluster
Slide 41
© Copyright KodeKloud
Kubernetes Refresher
Slide 42
© Copyright KodeKloud
Slide 43
© Copyright KodeKloud
Definition of Kubernetes
Kubernetes, also known as K8s, is an open-
source system for automating the
,
and
of containerized applications.
Slide 44
© Copyright KodeKloud
How do we create it?
Slide 45
© Copyright KodeKloud
Slide 46
© Copyright KodeKloud
Deploy it
Scale it
Manage it
Slide 47
© Copyright KodeKloud
Slide 48
© Copyright KodeKloud
Kubernetes Features
Automated Rollouts and Rollbacks
Docker Image Version Production Pod
Version Production Pod
Achieving this
task is known
as
Pug
Slide 49
© Copyright KodeKloud
Kubernetes Features
Self -Healing
Service Discovery and Load Balancing
Security and Configuration Management
Slide 50
© Copyright KodeKloud
Where do we deploy the Kubernetes?
Slide 51
© Copyright KodeKloud
Cloud Options
AWS GCP Microsoft Azure
Slide 52
© Copyright KodeKloud
Own Datacentres
Slide 53
© Copyright KodeKloud
Pros & Cons
Organization
Cost
Big Team
Slide 54
© Copyright KodeKloud
How to setup the Kubernetes cluster in GCP?
Slide 55
© Copyright KodeKloud
Sprint-02 review
Slide 56
© Copyright KodeKloud
Sprint Review
Creating a GCP account
Understanding the fundamentals of GKE in GCP
Setting up a GKE cluster
Slide 57
© Copyright KodeKloud
Slide 58
© Copyright KodeKloud
Sprint-03
Slide 59
© Copyright KodeKloud
Design Discussion on CI/CD
CI CD
Slide 60
© Copyright KodeKloud
What is Design Discussion?
Slide 61
© Copyright KodeKloud
Slide 62
© Copyright KodeKloud
Google Cloud Platform
GKE
Slide 63
© Copyright KodeKloud
What is the next step?
Slide 64
© Copyright KodeKloud
Slide 65
© Copyright KodeKloud
How do we achieve this?
Slide 66
© Copyright KodeKloud
CI/CD
Slide 67
© Copyright KodeKloud
What are the steps required?
Slide 68
© Copyright KodeKloud
Design Discussion
CI CD
Slide 69
© Copyright KodeKloud
CI/CD Design Discussion
Slide 70
© Copyright KodeKloud
Slide 71
© Copyright KodeKloud
What are the steps required?
Slide 72
© Copyright KodeKloud
GitHub GKE
Automated way to build the docker
image.
Slide 73
© Copyright KodeKloud
GitHub GKE
We have to store the Docker image
in an artifactory.
Slide 74
© Copyright KodeKloud
Where do we store Docker image?
Slide 75
© Copyright KodeKloud
Slide 76
© Copyright KodeKloud
GitHub GKE
We have to write a deployment /
service YAML files for K8 deployment.
Slide 77
© Copyright KodeKloud
Horizontal Pot
Autoscaling
Ingress Deployment
YAML
Service YAML
Slide 78
© Copyright KodeKloud
GitHub GKE
We have to setup CD to deploy this
code to GKE using the docker image
stored in artifactory.
Slide 79
© Copyright KodeKloud
GitHub GKE
Automated way to build the docker image.
We have to store the Docker image in an
artifactory.
We have to write a deployment/service
yamlfiles for K8 deployment.
We have to setup CD to deploy this code to
GKE using the docker image stored in
artifactory.
Slide 80
© Copyright KodeKloud
How do you research?
Slide 81
© Copyright KodeKloud
GCP Documentation
CI/CD Tool
Deploy GitHub Repository YAML Files
YAML
Answer
Research Open Source Read Code
Slide 82
© Copyright KodeKloud
GitHub GKE
Automated way to build the docker image.
We have to store the Docker image in an
artifactory.
We have to write a deployment/service
yamlfiles for K8 deployment.
We have to setup CD to deploy this code to
GKE using the docker image stored in
artifactory.
Slide 83
© Copyright KodeKloud
What tools in GCP can
help us achieve this ?
Slide 84
© Copyright KodeKloud
GitHub GKE
Automated way to build the docker image.
We have to store the Docker image in an
artifactory.
We have to write a deployment/service
yamlfiles for K8 deployment.
We have to setup CD to deploy this code to
GKE using the docker image stored in
artifactory.
Slide 85
© Copyright KodeKloud
Slide 86
© Copyright KodeKloud
Automated way to
build the docker image.
CD tool in GCP
Use it to build docker Image
Slide 87
© Copyright KodeKloud
We have to store the
Docker image in an
artifactory.
Store Docker Image
Slide 88
© Copyright KodeKloud
We have to write a
deployment/service
yamlfiles for K8
deployment.
Use it to deploy our
image to GKE cluster.
Slide 89
© Copyright KodeKloud
We have to setup CD to
deploy this code to
GKE using the docker
image stored in
artifactory.
Use it to deploy our
image to GKE cluster.
Slide 90
© Copyright KodeKloud
How does Cloud Build work?
Slide 91
© Copyright KodeKloud
How does GCP Artifactory work?
Slide 92
© Copyright KodeKloud
Services in GCP
Cloud Build
GCP Artifact Registry
Slide 93
© Copyright KodeKloud
Cloud
Build
GCP
Artifact
Registry
GitHub GKE
Cloud
Build
1
2
2
2
Build and store Docker Image1 Deploy Docker Image to GKE2
1
Slide 94
© Copyright KodeKloud
Sprint-03 review
Slide 95
© Copyright KodeKloud
Design Discussion on CI/CD
CI CD
Slide 96
© Copyright KodeKloud
What is Cloud Build in GCP?
Slide 97
© Copyright KodeKloud
What is GCP Artifact Registry?
Slide 98
© Copyright KodeKloud
What is GCP Artifact Registry?
Slide 99
© Copyright KodeKloud
Cloud
Build
GCP
Artifact
Registry
Slide 100
© Copyright KodeKloud
Slide 101
© Copyright KodeKloud
Sprint-04
Slide 102
© Copyright KodeKloud
Cloud Build
Slide 103
© Copyright KodeKloud
What are the features of Cloud Build?
Slide 104
© Copyright KodeKloud
?
Cloud Build GitHub Repository
Slide 105
© Copyright KodeKloud
Automate Docker Image
Build Process
GCP Artifact Registry
Slide 106
© Copyright KodeKloud
Sprint Goals
Understanding Cloud Build in details
How to connect Cloud Build to GitHub Repository?
Automate Docker Image build process
Slide 107
© Copyright KodeKloud
Cloud Build in detail
Slide 108
© Copyright KodeKloud
Slide 109
© Copyright KodeKloud
What are the features of Cloud Build?
Slide 110
© Copyright KodeKloud
What are the driving factors?
Slide 111
© Copyright KodeKloud
CICD
CICD
CICD
CICD
CI CD
Slide 112
© Copyright KodeKloud
Build software quickly across all programming
languages, including Java, Go, Node.js and more.
Slide 113
© Copyright KodeKloud
Choose from 15 machine types and run hundreds
of concurrent builds per pool.
Slide 114
© Copyright KodeKloud
Deploy across multiple environments such as
VMs, serverless, Kubernetes, or Firebase.
Slide 115
© Copyright KodeKloud
Access cloud-hosted, fully managed CI/CD
workflows within your private network.
CI CD
Slide 116
© Copyright KodeKloud
Keep your data at rest within a geographical
region or specific location with data residency.
Slide 117
© Copyright KodeKloud
Takeaways
YAML
It is a complete serverless CI/CD platform
No Infrastructure to maintain
Pricing: E2 –Medium serverless $0.003 per build/minute
Code: Written in YAML file
Slide 118
© Copyright KodeKloud
YAML
Slide 119
© Copyright KodeKloud
?
Cloud BuildGitHub Repository
Slide 120
© Copyright KodeKloud
When is Cloud Build triggered?
Slide 121
© Copyright KodeKloud
Cloud Build trigger
Slide 122
© Copyright KodeKloud
When is Cloud Build triggered?
Slide 123
© Copyright KodeKloud
Jenkins Webhooks GitHub
Slide 124
© Copyright KodeKloud
What events to be used to trigger?
Slide 125
© Copyright KodeKloud
How to trigger the Cloud Build?
Slide 126
© Copyright KodeKloud
GitHub Cloud BuildCloud Build Trigger
Slide 127
© Copyright KodeKloud
What is the trigger?
Slide 128
© Copyright KodeKloud
Slide 129
© Copyright KodeKloud
Slide 130
© Copyright KodeKloud
Any push on the
main/master branch will
trigger our Cloud Build
Slide 131
© Copyright KodeKloud
Cloudbuild.yamlfile shall contain
the CD code
Slide 132
© Copyright KodeKloud
Quick walkthrough
Slide 133
© Copyright KodeKloud
Recap
Make code changes
Commit the changes to GitHub
Open a pull request (PR)
Merge the PR to the main/master repo
Cloud Build is triggered
Cloud Build will store the Docker image
to the Artifact Registry
Cloud
Build
GCP
Artifact
Registry
GitHub
Slide 134
© Copyright KodeKloud
Sprint-04 review
Slide 135
© Copyright KodeKloud
Sprint Goals
Understand Cloud Build in detail
Learn to connect Cloud Build to GitHub repo
Automate Docker image build process
Slide 136
© Copyright KodeKloud
Slide 137
© Copyright KodeKloud
Sprint-05
Slide 138
© Copyright KodeKloud
Extending the CI/CD process to deploy our Docker image on a GKE cluster
CI/CD Docker Image GKE
Slide 139
© Copyright KodeKloud
When will it be completed?
Slide 140
© Copyright KodeKloud
Slide 141
© Copyright KodeKloud
Why is it so?
Slide 142
© Copyright KodeKloud
CI/CD Docker Image GKE
Slide 143
© Copyright KodeKloud
Slide 144
© Copyright KodeKloud
How to break the task?
Slide 145
© Copyright KodeKloud
Slide 146
© Copyright KodeKloud
Slide 147
© Copyright KodeKloud
Creating a namespace in our GKE cluster
Slide 148
© Copyright KodeKloud
Creating a deployment file
Slide 149
© Copyright KodeKloud
Updating the Cloud Build code for deployment
Slide 150
© Copyright KodeKloud
Validating the deployment
Slide 151
© Copyright KodeKloud
Creating a namespace in our GKE cluster
Creating a deployment file
Updating the Cloud Build code for deployment
Validating the deployment
Slide 152
© Copyright KodeKloud
Sprint-05 review
Slide 153
© Copyright KodeKloud
Extending the CI/CD process to deploy our Docker image on a GKE cluster
CI/CD Docker Image GKE
Slide 154
© Copyright KodeKloud
Sprint Goals
Creating a namespace in our GKE cluster
Creating a deployment file
Updating the Cloud Build code for deployment
Validating the deployment
Slide 155
© Copyright KodeKloud
Slide 156
© Copyright KodeKloud
Sprint-06
Slide 157
© Copyright KodeKloud
YAML
Extending our gke.yamlfile to also include
code to expose our application via an endpoint
Slide 158
© Copyright KodeKloud
What is this service called?
Slide 159
© Copyright KodeKloud
How to expose our application?
Slide 160
© Copyright KodeKloud
Sprint-06 review
Slide 161
© Copyright KodeKloud
YAML
Extending our gke.yamlfile to also include code to expose our application via an endpoint
Slide 162
© Copyright KodeKloud
Slide 163
© Copyright KodeKloud
Sprint-07
Slide 164
© Copyright KodeKloud
Slide 165
© Copyright KodeKloud
!
Slide 166
© Copyright KodeKloud
Slide 167
© Copyright KodeKloud
We are requested to setup a
development environment
Slide 168
© Copyright KodeKloud
How do we do that?
Slide 169
© Copyright KodeKloud
What is a development environment?
Slide 170
© Copyright KodeKloud
Application Development Development
Environment
Main Branch
Slide 171
© Copyright KodeKloud
How do we set it up?
Slide 172
© Copyright KodeKloud
Upgrade replicas
using the new flow
Slide 173
© Copyright KodeKloud
Slide 174
© Copyright KodeKloud
Deployment process using the Development Environment
Slide 175
© Copyright KodeKloud
Deployment process using the Development Environment
Application ProductionProduction
Environment
Slide 176
© Copyright KodeKloud
Sprint-07 review
Slide 177
© Copyright KodeKloud
Dev Ops
Deploy the changes to production
using the right DevOps lifecycle
Develop Test Deploy
Slide 178
© Copyright KodeKloud
Tags
Categories
General
Download
Download Slideshow
Get the original presentation file
Quick Actions
Embed
Share
Save
Print
Full
Report
Statistics
Views
52
Slides
178
Age
493 days
Related Slideshows
22
Pray For The Peace Of Jerusalem and You Will Prosper
RodolfoMoralesMarcuc
33 views
26
Don_t_Waste_Your_Life_God.....powerpoint
chalobrido8
36 views
31
VILLASUR_FACTORS_TO_CONSIDER_IN_PLATING_SALAD_10-13.pdf
JaiJai148317
33 views
14
Fertility awareness methods for women in the society
Isaiah47
30 views
35
Chapter 5 Arithmetic Functions Computer Organisation and Architecture
RitikSharma297999
29 views
5
syakira bhasa inggris (1) (1).pptx.......
ourcommunity56
30 views
View More in This Category
Embed Slideshow
Dimensions
Width (px)
Height (px)
Start Page
Which slide to start from (1-178)
Options
Auto-play slides
Show controls
Embed Code
Copy Code
Share Slideshow
Share on Social Media
Share on Facebook
Share on Twitter
Share on LinkedIn
Share via Email
Or copy link
Copy
Report Content
Reason for reporting
*
Select a reason...
Inappropriate content
Copyright violation
Spam or misleading
Offensive or hateful
Privacy violation
Other
Slide number
Leave blank if it applies to the entire slideshow
Additional details
*
Help us understand the problem better