1 of 13

Devops - Diagrams

Niv itzhaky

2 of 13

CI - CD Continuous Integration / continuous deployment.

Get code (from front and backend)

Compile

Run Tests

Save artifacts

3 of 13

CI - CD Continuous Integration / continuous deployment.

Deploy artifact automatically to “Staging”

Allow deploying the same software to Production

This process was taking months

With new technology it can take hours

We build the “pipeline” in small steps �we’ll check after every small step

4 of 13

Tools

Github - source control

Github actions - automation

Ec2 - simple instance

Docker - container technology

S3 - Static files

Route 53 - domain certificates

Cloudfront - Https and routing

5 of 13

More Tools

Gitlab - source control

Gitlab - automation

ECR - private registry

RDS - managed database

Ecs - Fargate - the AWS serverless architecture

Load balancers - traffic managers

EKS - Kubernetes

Helm - Package Manager

6 of 13

Costs

During the course you’ll need to create

AWS account

Gitlab account

Running for a week cost ~ 50$

(For AWS:)

It is recommended to create a new account and terminate when done

7 of 13

I’m available on all channels

https://www.linkedin.com/in/nivitzhaky/�niv.itzhaky@gmail.com�0525236451

8 of 13

EC2 - simple

(only free components)

EC2 - server

mysql

3306

3306

appserver

8080

8080

Static files

S3 Bucket

Cloudfront

api/*

*

Route 53 ec2-stage.nivitzhaky.com

A- record (ec2-raw)

front

3000

3000

9 of 13

ECS - fargate

ECS - server

RDS mysql

3306

appserver

8080

Static files

S3 Bucket

Cloudfront

/api/*

*

Route 53 ecs.nivitzhaky.com

loadbalancer

10 of 13

Task Definition

(versions)

One container or more

Memory and CPU requirements

Cluster

Task1

Task2

Task Def

Service1

Service2

Fargate - Architecture

11 of 13

EKS

RDS mysql

3306

Deployment

8080

Static files

S3 Bucket

Cloudfront

/api/*

*

Route 53 eks.nivitzhaky.com

Service - load balancer

12 of 13

service

pod

pod

deployment

Service2

Kubernetes - Architecture

deployment2

pod

pod

Deployment

Image

replicas

healthness/liveness

Memory and CPU requirements

13 of 13

fakepal.com

paypal.com/api

paypal.com

CORS explanation