22
Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager [email protected] Miquel Sabaté Software Engineer [email protected]

Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager [email protected] Miquel Sabaté Software

  • Upload
    others

  • View
    17

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

Demystifying Kubernetes: An introduction for Sysadmins & co.

Federica Teodori

Project Manager

[email protected]

Miquel Sabaté

Software Engineer

[email protected]

Page 2: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

2

In the beginning, there was ...

● A developer● An application● Many problems

Page 3: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

3

/ˌpanəˈsiːə/nouna solution or remedy for all difficulties or diseases.

Page 4: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

4

Live long and prosper!

Page 5: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

5

Reality check:

Page 6: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

6

The “orchestration” problem

● Isn't really anything new ● Not “containers only” problems● Distributed DC. Highly Available applications, load balancers ...● Do we really need to reinvent the wheel yet another time?

Page 7: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

7

Orchestrate!

Page 8: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

8

Kubernetes facts:

● Container orchestrator● Open source● Based on rock solid papers● Opinionated solution: has an answer to most questions● Created by Google, now part of the CNCF● Big and active community● Battle-tested with real-world production scenarios

Page 9: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

9

Concepts: container

● Contains an application and its required environment● Isolated, so load balancing, connectivity, storage, etc. becomes a challenge● The most basic unit from the Kubernetes point of view

Page 10: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

10

Concepts: pod

● A runnable unit of work● It can be just one container, or multiple related containers● Kubernetes connects pods to the network and the cluster environment.

Page 11: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

11

Concepts: replication controller

● Manages pods● Makes sure that a specific number of “replicas” are running at the same time

Page 12: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

12

Concepts: service

● An abstraction that tells to Kubernetes what is your application providing

• This information is also given to all pods and replication controllers.● The IP and port of a service always stays the same

• Managed by Kubernetes

• Integrated service discovery

Page 13: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

13

Concepts: volume

● A location where containers can access and store data● There are lots of storage backends: local storage, Ceph, etc.

Page 14: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

14

Concepts: label

● A way to identify anything● Open-ended: the meaning of a label is up to the administrator

Page 15: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

15

Concepts: namespace

● Grouping mechanism● A degree of isolation for the different parts of your cluster

Page 16: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

16

Architecture

Page 17: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

17

Cool, how do I deploy it?

Page 18: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

18

You simply need to...

● Install certificates on each node.● Install, configure and make sure that the following work together on

multiple nodes:● etcd● All the Kubernetes binaries: kube-proxy, kubelet, kube-controller-manager,

kube-scheduler, kube-apiserver.● flannel● Docker

● That’s a total of 5 extra configuration files for each master, plus 4 for each minion, and another one for etcd.

● Read for quite some hours “Getting started” guides.

Page 19: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

19

What are we doing?

Page 20: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

20

SUSE & Kubernetes:

● Main focus: Reduce administration overhead

- SUSE OpenStack Cloud 7 and Magnum

- SUSE Containers as a Service Platform

Page 21: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software

21

Questions ?

Page 22: Demystifying Kubernetes: An introduction for …...Demystifying Kubernetes: An introduction for Sysadmins & co. Federica Teodori Project Manager fteodori@suse.com Miquel Sabaté Software