Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that...
Transcript of Friday, April 3rd 2020 Welcome CNCF Webinar Kaslin Fields ...€¦ · Exercise 3 •Put that...
![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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/1.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/2.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/3.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/4.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/5.jpg)
• “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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/6.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/7.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/8.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/9.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/10.jpg)
![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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/11.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/12.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/13.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/14.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/15.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/16.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/17.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/18.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/19.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/20.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/21.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/22.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/23.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/24.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/25.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/26.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/27.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/28.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/29.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/30.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/31.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/32.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/33.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/34.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/35.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/36.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/37.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/38.jpg)
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)](https://reader034.fdocuments.net/reader034/viewer/2022042416/5f31373c48643720d70d8b8b/html5/thumbnails/39.jpg)
Thanks for Visiting Cloud Land!