what’s hype and what’s ripe? learning the fundamentals of … · 2019. 12. 21. · what is a...
TRANSCRIPT
![Page 1: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/1.jpg)
![Page 2: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/2.jpg)
What’s Hype and What’s Ripe? Learning the Fundamentals of
Docker and KubernetesPaul Burt, Red HatPaul Burt, Red Hat
![Page 3: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/3.jpg)
What is a container? Why are they catching on? In this introductory tutorial, we’ll explore how to run a container on your laptop, in addition to answering these questions.
We’ll look at how to build a container and the importance of building your own or using trusted containers. We’ll look at recent studies on the health of “public registries”, discuss what they are, and how you can easily avoid their security risks with a bit of pragmatism.
After that, we’ll get our hands dirty looking at the tools required to build and run containers at a small scale. We’ll answer questions like why do container deployments often grow to such a large scale, and what changes about the way we should run them when looking at a large scale? We’ll explore the importance of automation, using the story of Knight Capital as a cautionary tale.
We’ll look at common architectures, work through some tutorials for Docker and Kubernetes on katacoda, and map out the dizzying landscape that is the CNCF Landscape. The goal of this tutorial is to introduce you to containers if you’re new to the scene and fill in gaps-in-knowledge for veterans of the container ecosystem.
![Page 5: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/5.jpg)
This talk isContainers +Kubernetes
![Page 6: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/6.jpg)
![Page 7: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/7.jpg)
“Did anyone make a large purchase recently? A house, an expensive car? How many of you made that purchase by just looking at the benefits, and not looking at the price?”
– R. Meshenberg
![Page 8: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/8.jpg)
What’s a container?
![Page 9: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/9.jpg)
What is a container?
It’s a TAR file.
What is a container?
It’s a TAR file.
AKA
![Page 10: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/10.jpg)
Containers are . . .CgroupsChrootUnshareNsenterBind mounts
TAR files +
![Page 11: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/11.jpg)
Linux Magic
![Page 12: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/12.jpg)
For More on WHAT containers are
Containers From Scratch
By Eric Chiang
Best Practices for Containerized Environments
By Brian “Redbeard”
![Page 14: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/14.jpg)
Why containers?idk, why do ducks float?
![Page 15: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/15.jpg)
Hell is other people’s development environment
Hell is other people’s development environment
![Page 16: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/16.jpg)
![Page 17: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/17.jpg)
TL;DR of how it worksAin’t nobody got time to read specs
![Page 18: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/18.jpg)
![Page 19: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/19.jpg)
![Page 20: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/20.jpg)
The runtime manages the lifecycle of a container (including plugins)
![Page 21: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/21.jpg)
An image formatA container runtime
A log collection daemonAn init system and process babysitter
A container image build systemA remote management API
![Page 22: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/22.jpg)
Two separate but connected specifications● image-spec: what's in a container● runtime-spec: how to run a container
The OCI standards
![Page 23: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/23.jpg)
● Portable archive format● Composed of:
○ image manifest○ image index (optional)○ filesystem layers○ configuration
OCI Image Spec
![Page 24: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/24.jpg)
![Page 25: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/25.jpg)
![Page 26: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/26.jpg)
Zoom,Enhance!
![Page 27: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/27.jpg)
CNI concerns itself only with network connectivity of containers and removing allocated resources when the container is deleted.
CNI concerns itself only with network connectivity of containers and removing allocated resources when the container is deleted.
![Page 28: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/28.jpg)
CRIContainer Runtime Interface
![Page 29: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/29.jpg)
CRIContainer Runtime Interface“Docker and rkt were integrated directly and
deeply into the kubelet source code through an internal and volatile interface.”
![Page 30: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/30.jpg)
![Page 31: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/31.jpg)
CRI Timeline
1.5 alpha out
1.6 Docker CRI gets beta + enabled by default
1.7 Docker CRI goes GAJun 30
Mar 28
Dec 12
2017
![Page 32: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/32.jpg)
That’s exciting...In a Mom & Dad got me socks for X-mas
kind of way
![Page 33: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/33.jpg)
![Page 34: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/34.jpg)
![Page 36: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/36.jpg)
So, that’s it?
![Page 37: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/37.jpg)
But... How do we run containers?
![Page 38: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/38.jpg)
I know! This is where we talk about Kubernetes.
![Page 39: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/39.jpg)
I know! This is where we talk about Kubernetes.
Nope
![Page 40: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/40.jpg)
Systemd is sufficient management for a single host
![Page 41: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/41.jpg)
![Page 42: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/42.jpg)
So, why the excitement about Kubernetes?
![Page 43: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/43.jpg)
Distributed systems,Immutable infrastructure,
CAP Theorem, Pets vs Cattle,etc...
![Page 44: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/44.jpg)
1. The network is reliable.
2. Latency is zero.
3. Bandwidth is infinite.
4. The network is secure.
5. Topology doesn't change.
6. There is one administrator.
7. Transport cost is zero.
8. The network is homogeneous.
Fallacies of distributed computing
![Page 45: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/45.jpg)
Distributed systems are hard
![Page 46: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/46.jpg)
So, what is Kubernetes?(specifically)
![Page 47: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/47.jpg)
![Page 48: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/48.jpg)
For nuts and bolts of K8s see
How Heptio engineers ace the certified
kubernetes admin exam
By Ross Kukulinski
Kubernetes certified administrator GitHub
By Walid Shaari
![Page 49: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/49.jpg)
For our purposes, we can think of the machinery as the control plane and the kubelet
![Page 50: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/50.jpg)
Popping the hood is different than driving
![Page 51: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/51.jpg)
Pods and Services
![Page 52: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/52.jpg)
![Page 53: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/53.jpg)
Give this a name
![Page 56: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/56.jpg)
DIY Kubernetes
I assure you, Lord Vader, my men are working as fast they can.
![Page 57: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/57.jpg)
$ rkt run presentation# everyone claps# drink a beer$
rkt run...
![Page 58: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/58.jpg)
Hello Darkness, my old friend...
![Page 59: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/59.jpg)
To get started you need an image registry + cluster
![Page 60: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/60.jpg)
Image Registries
![Page 61: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/61.jpg)
![Page 62: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/62.jpg)
Clusters
Every Cloud and Linux vendor
+
![Page 63: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/63.jpg)
![Page 64: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/64.jpg)
![Page 65: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/65.jpg)
Let’s get our hands dirty with Kubernetes
learn.openshift.comSlides: goo.gl/oPUmcZ
![Page 66: What’s Hype and What’s Ripe? Learning the Fundamentals of … · 2019. 12. 21. · What is a container? Why are they catching on? In this introductory tutorial, we’ll explore](https://reader035.vdocument.in/reader035/viewer/2022071407/60fe3ded44219209832e7c64/html5/thumbnails/66.jpg)