IPC16: A Practical Introduction to Kubernetes
-
Upload
robert-lemke -
Category
Technology
-
view
434 -
download
3
Transcript of IPC16: A Practical Introduction to Kubernetes
![Page 1: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/1.jpg)
A practical introductionto Kubernetes
by Robert Lemke
![Page 3: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/3.jpg)
![Page 4: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/4.jpg)
Disclaimer
![Page 5: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/5.jpg)
How do you deployPHP applications?
![Page 6: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/6.jpg)
![Page 7: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/7.jpg)
Containers are not light-weight virtual machines.They are mostly a clever way to isolate processes.
![Page 8: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/8.jpg)
![Page 9: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/9.jpg)
Managing containers ain’t easy.
![Page 10: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/10.jpg)
![Page 11: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/11.jpg)
![Page 12: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/12.jpg)
vs
![Page 13: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/13.jpg)
![Page 14: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/14.jpg)
“"So let me get this straight. You want to build an external version of the Borg task scheduler. One of our most important competitive advantages. The one we don’t even talk about externally. And, on top of that, you want to open source it?"
Urs HölzleGoogle Senior VP of Infrastructure
![Page 15: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/15.jpg)
![Page 16: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/16.jpg)
Mesos
Nomad
Swarm
![Page 17: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/17.jpg)
App Code
🤓
Infrastructure
😎
![Page 18: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/18.jpg)
application
cluster
operating system
hardware
![Page 19: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/19.jpg)
> clustered environment > multiple Docker hosts
> container grouping > load balancing > auto-healing > scaling
![Page 20: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/20.jpg)
Kubernetesnetworks
Kubernetes Master
Minion 1(Node)
Minion2(Node)
Minion3(Node)
service network
overlay network
Internet
![Page 21: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/21.jpg)
Kubemaster
provides scheduler and API server
![Page 22: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/22.jpg)
Minions
act as nodes run kubelets
![Page 23: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/23.jpg)
index.php
![Page 24: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/24.jpg)
index.phpNginx PHP-FPM
![Page 25: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/25.jpg)
index.phpNginx PHP-FPM Pod
![Page 26: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/26.jpg)
index.phpNginx PHP-FPM Pod 1
index.phpNginx PHP-FPM Pod 2
Replication Controller
![Page 27: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/27.jpg)
index.phpNginx PHP-FPM Pod 1
index.phpNginx PHP-FPM Pod 2
Replication Controller
shared network,shared volumes
shared network,shared volumes
![Page 28: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/28.jpg)
index.phpNginx PHP-FPM Pod 1
index.phpNginx PHP-FPM Pod 2
Replication Controller
shared network,shared volumes
shared network,shared volumes
app=wwwneosio
![Page 29: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/29.jpg)
Building blocks
Let’s spin up a cluster anddeploy a PHP application.
![Page 30: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/30.jpg)
flownative/kubernetes-helloworld:v1
index.php
setup.sh
![Page 31: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/31.jpg)
controller-v1.yaml
![Page 32: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/32.jpg)
controller-v1.yaml
![Page 33: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/33.jpg)
controller-v1.yaml
![Page 34: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/34.jpg)
Demo
![Page 35: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/35.jpg)
Challenges
![Page 36: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/36.jpg)
Cluster upgrades
![Page 37: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/37.jpg)
Application fitness
![Page 38: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/38.jpg)
Storage
![Page 39: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/39.jpg)
Image Build Process
![Page 40: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/40.jpg)
Monitoring
![Page 41: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/41.jpg)
![Page 42: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/42.jpg)
![Page 43: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/43.jpg)
Getting started
![Page 46: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/46.jpg)
![Page 47: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/47.jpg)
What could Kubernetes mean for you?
![Page 48: IPC16: A Practical Introduction to Kubernetes](https://reader033.fdocuments.net/reader033/viewer/2022051503/5879e5ac1a28ab15288b5803/html5/thumbnails/48.jpg)
❤
+
=