friday, april 3rd 2020 welcome cncf webinar kaslin fields ...€¦ · exercise 3 •put that...

39
Welcome to CloudLand! Kaslin Fields CNCF Webinar Friday, April 3rd 2020

Upload: others

Post on 09-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Welcometo CloudLand!

Kaslin Fields

CNCF Webinar

Friday, April 3rd 2020

Page 2: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Kaslin Fields

• Developer Advocate at Google

• CNCF Ambassador

• Cloud Native, DevOps, Kubernetes

• Tech Comic Creator (https://kaslin.rocks)

Page 3: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Tell me about Cloud Native!

Page 4: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Once Upon a time… Toilet Paper CoCEO

$$$

$$$

(OK, so it was today.)

THE CLOUD

Page 5: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

• “Lift and Shift”• Moving applications/systems as-is to the cloud

•Cloud Native• Using the unique capabilities of the cloud to your advantage• This may mean re-architecting systems, and likely means designing new

systems differently

VS

Page 6: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

In-House vs Cloud Native

Copyright © 2019 Oracle and/or its affiliates.

VS

Page 7: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Exercise 1

• Install something!• Nginx works great, maybe along with a simple “Hello World” web app

• Think about• What steps do I have to go through to do this? If I had to do it 500 times, how

would I do that?

Page 8: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Cloud Native Computing Foundation (CNCF)

• Independent non-profit

• Mission: Promote the growth and adoption of Cloud Native Technologies

• Support and promote many “cloud native” open source projects

• Maintain a “Cloud Native Landscape” to help companies understand the breadth of Cloud Native software

8

Page 9: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

9

Page 10: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)
Page 11: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

11

Page 12: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

What are the most exciting and unique

things about going to an amusement

park or festival?

12

Page 13: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Amusement Park / Festival Food

13

Delicious!

Delicious!

Exciting!

Page 14: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Containers

14

Popcorn Kernels• Efficient Storage

• Portable

• Stores small, but feeds a crowd

• Repeatable

• Quick and easy

Benefits of Popcorn Benefits of Containers

• Efficient Storage

• Portable

• Store once, can be spun up en masse

• Repeatable

• Quick startup time

Page 15: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Container Runtimes

15

Speed, Security, Weight

Page 16: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Container Registries

16

Storage and Retrieval

Page 17: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Exercise 2

• Try to install that same thing, but using containers!• Nginx is a common example, available easily via dockerhub!

• Think about• What steps do I have to go through to do this? If I had to do it 500 times, how

would I do that?

• It should be a lot easier to do 500 times!

Page 18: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Container Orchestration

18

Operating at Scale

Page 19: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Exercise 3

• Put that container image in dockerhub and try deploying it to a K8s Cluster!

• Beginner (cloud)• Use a free trial [like GKE’s free trial] to use a managed k8s cluster on a cloud provider

• Beginner (local)• Use minikube on your local machine

• Intermediate/Challenging• Go through Kubernetes The Hard Way

• Think about• If I had to run 500 of this container, how would Kubernetes help me do that?

Page 20: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Serverless / Functions as a Service

20

Focus on Code

Page 21: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Functions Use Case

21

Storage1. Upload an image

3. Process Image

4. A processed image is produced and stored.

2. The image being inserted to object storage triggers an

event

Focus on Code

Page 22: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Exercise 4

• Run that app/container via a functions as a service platform!• Use a cloud provider’s free trial to do this

• Think about• What is the format like? Can I run the container? Can I run some application

from code?

• What would the cost be to run 500 of these once a month for 45min?

Page 23: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Infrastructure as Code

23

“GitOps”

DevOps - Manage your “Ops” like you manage your “Dev”

Page 24: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Exercise 5

• Deploy your app via Terraform• There may be a terraform template already on github (ie. Nginx again)

• Think about• What tools does this service mesh give me?• What do I need to do to use those tools?

Page 25: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Service Mesh

25

Day 2 Kubernetes Boogaloo

Beyond Basics

Page 26: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Exercise 6

• Install a service mesh on your Kubernetes cluster from Exercise 3• Use a cloud provider’s free trial to do this

• Think about• What benefits does having my infrastructure defined as code give me• Imagine the situation where you have to deploy this 500 times, AND it’s

constantly changing

Page 27: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

There’s more to an amusement park

than just food though.

27

Let’s talk about

some other things

that go into running

an amusement park.

Page 28: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Cloud Events

28

•Something Happened!– Create a trigger which will send a message (an

event) to the endpoint of your choice when a certain action occurs• For example, a new object is inserted into object storage

•Standardized– Events are based on a standardized format

owned by the Cloud Native Computing Foundation (CNCF)

Event

Event Receiver/Endpoint

Page 29: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Functions + EventUse Case

29

Storage1. Upload an image

2. The image being inserted to object storage triggers an

event

3. Process Image

4. A processed image is produced and stored.

This trigger is

an event!

Page 30: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Observability

30

Ride Wait Time/StatusFerris Wheel 15minSpinning Tea Cups 25minSpeed Rider CLOSEDViking Ship 10min

Know Your System, Know Your Business

Page 31: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Observability - Monitoring

31

Know what’s happening,when it happens

Page 32: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Observability - Logging

32

Know what happened before

Page 33: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Observability - Tracing

33

Follow where the trail leads

Page 34: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Security & Compliance

If you want people to do things right,make it hard for them to do wrong.

Page 35: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Streaming & Messaging

35

Consume Data at Scale

Page 36: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Remote Procedure Call

Distributed Systems, Distributed Communication

Page 37: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Cloud Native Storage If the system is distributed, where is the data?

Page 38: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

38

Page 39: Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that container image in dockerhub and try deploying it to a K8s Cluster! •Beginner (cloud)

Thanks for Visiting Cloud Land!